Ignore:
Timestamp:
Mar 4, 2006 2:52:44 PM (18 years ago)
Author:
bennylp
Message:

Major modification in conference bridge to allow ports with different ptime and sampling rate. Also introduced sampling rate converter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_settings.c

    r268 r277  
    8484    puts(""); 
    8585    puts("Media Options:"); 
     86    puts("  --wb                Enable wideband codecs (16KHz)"); 
     87    puts("  --uwb               Enable ultra-wideband codecs (32KHz)"); 
    8688    puts("  --null-audio        Use NULL audio device"); 
    8789    puts("  --play-file=file    Play WAV file in conference bridge"); 
     
    219221           OPT_AUTO_ANSWER, OPT_AUTO_HANGUP, OPT_AUTO_PLAY, OPT_AUTO_LOOP, 
    220222           OPT_AUTO_CONF, 
    221            OPT_PLAY_FILE, OPT_RTP_PORT, 
     223           OPT_PLAY_FILE, OPT_WB, OPT_UWB, OPT_RTP_PORT, 
    222224           OPT_NEXT_ACCOUNT, OPT_NEXT_CRED, OPT_MAX_CALLS, 
    223225    }; 
     
    229231        { "help",       0, 0, OPT_HELP}, 
    230232        { "version",    0, 0, OPT_VERSION}, 
     233        { "wb",         0, 0, OPT_WB}, 
     234        { "uwb",        0, 0, OPT_UWB}, 
    231235        { "null-audio", 0, 0, OPT_NULL_AUDIO}, 
    232236        { "local-port", 1, 0, OPT_LOCAL_PORT}, 
     
    328332            break; 
    329333 
     334        case OPT_WB: 
     335            pjsua.clock_rate = 16000; 
     336            break; 
     337 
     338        case OPT_UWB: 
     339            pjsua.clock_rate = 32000; 
     340            break; 
     341 
    330342        case OPT_LOCAL_PORT:   /* local-port */ 
    331343            lval = pj_strtoul(pj_cstr(&tmp, optarg)); 
Note: See TracChangeset for help on using the changeset viewer.