diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-05-14 18:50:09 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-05-14 18:50:09 +0000 |
commit | 86ce3f4f381e097df01193f5ede65316c103bab1 (patch) | |
tree | 749b5be4f94eccb88806cbd0825b0a446338d0ca /pjmedia | |
parent | 612d2349e4664dd90bdf00850f22d2c4f5ee8c16 (diff) |
Set default sound backend in Win32 to own DirectSound, and changed conference clock to 10ms (from 20ms)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@443 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/include/pjmedia/config.h | 3 | ||||
-rw-r--r-- | pjmedia/src/pjmedia/dsound.c | 12 |
2 files changed, 11 insertions, 4 deletions
diff --git a/pjmedia/include/pjmedia/config.h b/pjmedia/include/pjmedia/config.h index 7a71ae5f..62d27e5f 100644 --- a/pjmedia/include/pjmedia/config.h +++ b/pjmedia/include/pjmedia/config.h @@ -34,7 +34,8 @@ * by default. */ #ifndef PJMEDIA_SOUND_IMPLEMENTATION -# define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_PORTAUDIO_SOUND +//# define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_PORTAUDIO_SOUND +# define PJMEDIA_SOUND_IMPLEMENTATION PJMEDIA_SOUND_WIN32_DIRECT_SOUND #endif diff --git a/pjmedia/src/pjmedia/dsound.c b/pjmedia/src/pjmedia/dsound.c index e6ff8ff0..c80dbad0 100644 --- a/pjmedia/src/pjmedia/dsound.c +++ b/pjmedia/src/pjmedia/dsound.c @@ -44,7 +44,7 @@ #define BYTES_PER_SAMPLE (BITS_PER_SAMPLE/8) #define MAX_PACKET_BUFFER_COUNT 32 -#define DEFAULT_BUFFER_COUNT 5 +#define DEFAULT_BUFFER_COUNT 8 @@ -212,7 +212,10 @@ static pj_status_t init_player_stream( struct dsound_stream *ds_strm, /* Done setting up play device. */ - PJ_LOG(5,(THIS_FILE, " DirectSound player stream initialized")); + PJ_LOG(5,(THIS_FILE, + " DirectSound player stream initialized (clock_rate=%d, " + "channel_count=%d, samples_per_frame=%d", + clock_rate, channel_count, samples_per_frame)); return PJ_SUCCESS; } @@ -304,7 +307,10 @@ static pj_status_t init_capture_stream( struct dsound_stream *ds_strm, ds_strm->dwDsBufferSize = buffer_count * bytes_per_frame; /* Done setting up recorder device. */ - PJ_LOG(5,(THIS_FILE, " DirectSound capture stream initialized")); + PJ_LOG(5,(THIS_FILE, + " DirectSound capture stream initialized (clock_rate=%d, " + "channel_count=%d, samples_per_frame=%d", + clock_rate, channel_count, samples_per_frame)); return PJ_SUCCESS; } |