Ignore:
Timestamp:
Jun 12, 2008 12:48:59 PM (13 years ago)
Author:
nanang
Message:

Ticket #542: added new API and macro for sound device latency settings, also added new param for this in pjsua

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/rtcp_xr.c

    r1984 r2007  
    327327         * is taken to be totally around 30ms + sound device latency. 
    328328         */ 
    329         est_extra_delay = 30 +  
    330 #if PJMEDIA_SOUND_IMPLEMENTATION==PJMEDIA_SOUND_PORTAUDIO_SOUND 
    331                           PJMEDIA_PASOUND_MAX_LATENCY 
    332 #elif PJMEDIA_SOUND_IMPLEMENTATION==PJMEDIA_SOUND_NULL_SOUND 
    333                           0 
    334 #else 
    335                           (PJMEDIA_SOUND_BUFFER_COUNT * 15) 
     329        est_extra_delay = 30; 
     330 
     331#if PJMEDIA_SOUND_IMPLEMENTATION!=PJMEDIA_SOUND_NULL_SOUND 
     332        est_extra_delay += PJMEDIA_SND_DEFAULT_REC_LATENCY +  
     333                           PJMEDIA_SND_DEFAULT_PLAY_LATENCY; 
    336334#endif 
    337                           ; 
     335 
    338336        sess->stat.rx.voip_mtc.end_sys_delay = (pj_uint16_t) 
    339337                                 (sess->stat.rx.voip_mtc.rnd_trip_delay / 2 + 
Note: See TracChangeset for help on using the changeset viewer.