Changeset 2182


Ignore:
Timestamp:
Jul 28, 2008 11:40:58 PM (11 years ago)
Author:
bennylp
Message:

Ticket #463: Configuration option to have external sound device implementation

Location:
pjproject/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r1892 r2182  
    860860  --disable-oss           Disable OSS audio (default: not disabled) 
    861861 
     862  --enable-ext-sound      PJMEDIA will not provide any sound device backend 
    862863  --disable-small-filter  Exclude small filter in resampling 
    863864  --disable-large-filter  Exclude large filter in resampling 
     
    1020610207 esac 
    1020710208fi 
     10209 
     10210# Check whether --enable-ext_sound or --disable-ext_sound was given. 
     10211if test "${enable_ext_sound+set}" = set; then 
     10212  enableval="$enable_ext_sound" 
     10213  if test "$enable_ext_sound" = "yes"; then 
     10214                ac_pjmedia_snd=external 
     10215                echo "$as_me:$LINENO: result: Checking if external sound is set... yes" >&5 
     10216echo "${ECHO_T}Checking if external sound is set... yes" >&6 
     10217               fi 
     10218 
     10219fi; 
    1020810220 
    1020910221 
  • pjproject/trunk/aconfigure.ac

    r1892 r2182  
    415415fi 
    416416 
     417AC_ARG_ENABLE(ext_sound, 
     418              AC_HELP_STRING([--enable-ext-sound], 
     419                             [PJMEDIA will not provide any sound device backend]), 
     420              [if test "$enable_ext_sound" = "yes"; then 
     421                [ac_pjmedia_snd=external] 
     422                AC_MSG_RESULT([Checking if external sound is set... yes]) 
     423               fi] 
     424              ) 
     425 
    417426dnl # Include resampling small filter 
    418427AC_SUBST(ac_no_small_filter) 
  • pjproject/trunk/pjmedia/build/os-auto.mak.in

    r1871 r2182  
    1212#   - ds:               Win32 DirectSound (dsound.c) 
    1313#   - null:             Null sound device (nullsound.c) 
     14#   - external:         Link with no sounddev (app will provide) 
    1415AC_PJMEDIA_SND=@ac_pjmedia_snd@ 
    1516 
     
    9192 
    9293# 
    93 # Last resort, null sound device 
     94# Null sound device 
    9495# 
    9596ifeq ($(AC_PJMEDIA_SND),null) 
     
    9899endif 
    99100 
     101# 
     102# External sound device 
     103# 
     104ifeq ($(AC_PJMEDIA_SND),external) 
     105export SOUND_OBJS =  
     106export CFLAGS += -DPJMEDIA_SOUND_IMPLEMENTATION=PJMEDIA_SOUND_EXTERNAL 
     107endif 
    100108 
     109 
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r2089 r2182  
    5656/** Constant for Win32 DirectSound sound backend. */ 
    5757#define PJMEDIA_SOUND_WIN32_DIRECT_SOUND    2 
     58 
     59/** When this is set, pjmedia will not provide any sound device backend.  
     60 *  Application will have to provide its own sound device backend 
     61 *  and link the application with it. 
     62 */ 
     63#define PJMEDIA_SOUND_EXTERNAL              3 
    5864 
    5965 
  • pjproject/trunk/pjsip-apps/build/Makefile

    r2037 r2182  
    3535                        main.o pjsua_app.o 
    3636export PJSUA_CFLAGS += $(_CFLAGS) 
    37 export PJSUA_LDFLAGS += $(APP_LDFLAGS) $(APP_LDLIBS) 
     37export PJSUA_LDFLAGS += $(APP_LDFLAGS) $(APP_LDLIBS) $(LDFLAGS) 
    3838export PJSUA_EXE:=../bin/pjsua-$(TARGET_NAME)$(HOST_EXE) 
    3939 
Note: See TracChangeset for help on using the changeset viewer.