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/dsound.c

    r1422 r2007  
    6060static int snd_init_count; 
    6161 
     62/* Latency settings */ 
     63static unsigned snd_input_latency  = PJMEDIA_SND_DEFAULT_REC_LATENCY; 
     64static unsigned snd_output_latency = PJMEDIA_SND_DEFAULT_PLAY_LATENCY; 
     65 
    6266 
    6367/* Individual DirectSound capture/playback stream descriptor */ 
     
    987991 
    988992 
     993/* 
     994 * Set sound latency. 
     995 */ 
     996PJ_DEF(pj_status_t) pjmedia_snd_set_latency(unsigned input_latency,  
     997                                            unsigned output_latency) 
     998{ 
     999    PJ_TODO(APPLY_LATENCY_SETTINGS_ON_DSOUND); 
     1000 
     1001    snd_input_latency  = (input_latency == 0)?  
     1002                         PJMEDIA_SND_DEFAULT_REC_LATENCY : input_latency; 
     1003    snd_output_latency = (output_latency == 0)?  
     1004                         PJMEDIA_SND_DEFAULT_PLAY_LATENCY : output_latency; 
     1005 
     1006    return PJ_SUCCESS; 
     1007} 
     1008 
    9891009#endif  /* PJMEDIA_SOUND_IMPLEMENTATION */ 
    9901010 
Note: See TracChangeset for help on using the changeset viewer.