diff options
author | Benny Prijono <bennylp@teluu.com> | 2009-10-29 09:39:17 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2009-10-29 09:39:17 +0000 |
commit | 80c2628e5009a4ef25ac9dbd624da75e7907f0db (patch) | |
tree | 269a482487bbb985d73f8a80c25aebda620ef0cd /pjmedia/include/pjmedia-audiodev/config.h | |
parent | 64153021595b2d80fe4182d888f88cf932006067 (diff) |
Ticket #983: make native WMME the default audio device on Windows and Windows Mobile:
- increase default playback latency (PJMEDIA_SND_DEFAULT_PLAY_LATENCY) to 140ms for Win32 and 160ms for WM
- set default PJMEDIA_SOUND_BUFFER_COUNT to (PJMEDIA_SND_DEFAULT_PLAY_LATENCY+20)/20 rather than hardcoded 6
- disable PA from audiodev on Win32 and WM
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2977 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/include/pjmedia-audiodev/config.h')
-rw-r--r-- | pjmedia/include/pjmedia-audiodev/config.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pjmedia/include/pjmedia-audiodev/config.h b/pjmedia/include/pjmedia-audiodev/config.h index 0cbec050..937e391a 100644 --- a/pjmedia/include/pjmedia-audiodev/config.h +++ b/pjmedia/include/pjmedia-audiodev/config.h @@ -44,9 +44,17 @@ PJ_BEGIN_DECL /** * This setting controls whether PortAudio support should be included. + * + * By default it is enabled except on Windows platforms (including + * Windows Mobile) and Symbian. */ #ifndef PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO -# define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 1 +# if (defined(PJ_WIN32) && PJ_WIN32!=0) || \ + (defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0) +# define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0 +# else +# define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 1 +# endif #endif |