From 1f46e87bfdfd90e5af9927af7e19bf29389ab27e Mon Sep 17 00:00:00 2001 From: icculus Date: Sat, 7 Jun 2008 14:38:46 +0000 Subject: VoIP: Don't hardcode Speex sample rate. git-svn-id: svn://svn.icculus.org/quake3/trunk@1372 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/snd_openal.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'code/client/snd_openal.c') 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); -- cgit v1.2.3