summaryrefslogtreecommitdiffstats
path: root/Alc/dsound.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/dsound.c
parentdb7ca2c7ca48026261c59095331ae2a098083c7a (diff)
Add a device flag for channel config requests
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r--Alc/dsound.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index 6dfbe3d6..e719d0a1 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -354,7 +354,7 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
}
hr = IDirectSound_GetSpeakerConfig(pData->lpDS, &speakers);
- if(SUCCEEDED(hr) && ConfigValueExists(NULL, "format"))
+ if(FAILED(hr) || (device->Flags&DEVICE_FREQUENCY_REQUEST))
{
switch(device->FmtChans)
{
@@ -371,7 +371,9 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
speakers = DSSPEAKER_COMBINED(DSSPEAKER_5POINT1, 0);
break;
case DevFmtX61:
- /* ??? */;
+ /* ??? */
+ AL_PRINT("6.1 not supported with DirectSound\n");
+ device->Flags &= ~DEVICE_CHANNELS_REQUEST;
break;
case DevFmtX71:
speakers = DSSPEAKER_COMBINED(DSSPEAKER_7POINT1, 0);