VoIP: Don't hardcode Speex sample rate.
This commit is contained in:
parent
13de2746ea
commit
26c706df15
5 changed files with 17 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue