diff options
author | Chris Robinson <[email protected]> | 2011-05-03 17:11:07 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-03 17:11:07 -0700 |
commit | 679f2480c9a66905b0a03c99e099b59bfd07879d (patch) | |
tree | 186219bf7fc0b39eba0f04b2e4ede23c57a57260 /Alc/ALc.c | |
parent | db7ca2c7ca48026261c59095331ae2a098083c7a (diff) |
Add a device flag for channel config requests
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1369,6 +1369,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, device->Flags |= DEVICE_FREQUENCY_REQUEST; device->Frequency = frequency; + + device->Flags |= DEVICE_CHANNELS_REQUEST; if(DecomposeDevFormat(format, &device->FmtChans, &device->FmtType) == AL_FALSE) { free(device); @@ -2309,6 +2311,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName) if(device->Frequency < 8000) device->Frequency = 8000; + if(ConfigValueExists(NULL, "format")) + device->Flags |= DEVICE_CHANNELS_REQUEST; fmt = GetConfigValue(NULL, "format", "AL_FORMAT_STEREO16"); if(DecomposeDevFormat(GetFormatFromString(fmt), &device->FmtChans, &device->FmtType) == AL_FALSE) |