summaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-05-03 17:11:07 -0700
committerChris Robinson <[email protected]>2011-05-03 17:11:07 -0700
commit679f2480c9a66905b0a03c99e099b59bfd07879d (patch)
tree186219bf7fc0b39eba0f04b2e4ede23c57a57260 /Alc/ALc.c
parentdb7ca2c7ca48026261c59095331ae2a098083c7a (diff)
Add a device flag for channel config requests
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 9bc2f41a..41f839e9 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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)