aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/snd_openal.c
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-07 14:38:46 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-06-07 14:38:46 +0000
commit1f46e87bfdfd90e5af9927af7e19bf29389ab27e (patch)
treec0749d9f0473d3abf60d71e0f57c7e320476bcf4 /code/client/snd_openal.c
parentc5f253e8b3c5b8907a568db81586885e0c71f9b5 (diff)
downloadioquake3-aero-1f46e87bfdfd90e5af9927af7e19bf29389ab27e.tar.gz
ioquake3-aero-1f46e87bfdfd90e5af9927af7e19bf29389ab27e.zip
VoIP: Don't hardcode Speex sample rate.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1372 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/snd_openal.c')
-rw-r--r--code/client/snd_openal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/code/client/snd_openal.c b/code/client/snd_openal.c
index 5f88ab0..1cb48b8 100644
--- a/code/client/snd_openal.c
+++ b/code/client/snd_openal.c
@@ -2088,6 +2088,10 @@ qboolean S_AL_Init( soundInterface_t *si )
if (qalcCaptureOpenDevice == NULL) {
Com_Printf("No ALC_EXT_capture support, can't record audio.\n");
} else {
+ // !!! FIXME: 8000Hz is what Speex narrowband mode needs, but we
+ // !!! FIXME: should probably open the capture device after
+ // !!! FIXME: initializing Speex so we can change to wideband
+ // !!! FIXME: if we like.
Com_Printf("OpenAL default capture device is '%s'\n",
qalcGetString(NULL, ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER));
alCaptureDevice = qalcCaptureOpenDevice(NULL, 8000, AL_FORMAT_MONO16, 4096);