Changeset 443


Ignore:
Timestamp:
May 14, 2006 6:50:09 PM (18 years ago)
Author:
bennylp
Message:

Set default sound backend in Win32 to own DirectSound?, and changed conference clock to 10ms (from 20ms)

Location:
pjproject/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/config.h

    r438 r443  
    3535 */ 
    3636#ifndef PJMEDIA_SOUND_IMPLEMENTATION 
    37 #   define PJMEDIA_SOUND_IMPLEMENTATION     PJMEDIA_SOUND_PORTAUDIO_SOUND 
     37//#   define PJMEDIA_SOUND_IMPLEMENTATION           PJMEDIA_SOUND_PORTAUDIO_SOUND 
     38#   define PJMEDIA_SOUND_IMPLEMENTATION     PJMEDIA_SOUND_WIN32_DIRECT_SOUND 
    3839#endif 
    3940 
  • pjproject/trunk/pjmedia/src/pjmedia/dsound.c

    r372 r443  
    4545 
    4646#define MAX_PACKET_BUFFER_COUNT     32 
    47 #define DEFAULT_BUFFER_COUNT        5 
     47#define DEFAULT_BUFFER_COUNT        8 
    4848 
    4949 
     
    213213 
    214214    /* Done setting up play device. */ 
    215     PJ_LOG(5,(THIS_FILE, " DirectSound player stream initialized")); 
     215    PJ_LOG(5,(THIS_FILE,  
     216              " DirectSound player stream initialized (clock_rate=%d, " 
     217              "channel_count=%d, samples_per_frame=%d", 
     218              clock_rate, channel_count, samples_per_frame)); 
    216219 
    217220    return PJ_SUCCESS; 
     
    305308 
    306309    /* Done setting up recorder device. */ 
    307     PJ_LOG(5,(THIS_FILE, " DirectSound capture stream initialized")); 
     310    PJ_LOG(5,(THIS_FILE,  
     311              " DirectSound capture stream initialized (clock_rate=%d, " 
     312              "channel_count=%d, samples_per_frame=%d", 
     313              clock_rate, channel_count, samples_per_frame)); 
    308314 
    309315    return PJ_SUCCESS; 
  • pjproject/trunk/pjsip-apps/src/samples/siprtp_report.c

    r442 r443  
    6060 
    6161    /* Print duration */ 
    62     if (inv->state >= PJSIP_INV_STATE_CONFIRMED && call->connect_time) { 
     62    if (inv->state >= PJSIP_INV_STATE_CONFIRMED && call->connect_time.sec) { 
    6363 
    6464        PJ_TIME_VAL_SUB(now, call->connect_time); 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r441 r443  
    702702    /* Init conference bridge. */ 
    703703    clock_rate = pjsua.clock_rate ? pjsua.clock_rate : 16000; 
    704     samples_per_frame = clock_rate * 20 / 1000; 
     704    samples_per_frame = clock_rate * 10 / 1000; 
    705705    status = pjmedia_conf_create(pjsua.pool,  
    706706                                 pjsua.max_calls+PJSUA_CONF_MORE_PORTS,  
Note: See TracChangeset for help on using the changeset viewer.