aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/dsound.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-09-21 02:53:33 -0700
committerChris Robinson <[email protected]>2009-09-21 02:53:33 -0700
commite11b59a80f542e08bc877d1447f885fb0f5cc439 (patch)
tree9295577e517bf06d82eccf29700ac3b20bdfdb1c /Alc/dsound.c
parent0ae02e8ad4f77287e4641ab9491c94efac2d402b (diff)
Return imediately if trying to set an unknown format
Diffstat (limited to 'Alc/dsound.c')
-rw-r--r--Alc/dsound.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Alc/dsound.c b/Alc/dsound.c
index a704c454..6846886d 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -237,6 +237,11 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
speakers = DSSPEAKER_COMBINED(DSSPEAKER_5POINT1, 0);
else if(device->Format == AL_FORMAT_71CHN8 || device->Format == AL_FORMAT_71CHN16)
speakers = DSSPEAKER_COMBINED(DSSPEAKER_7POINT1, 0);
+ else
+ {
+ AL_PRINT("Unknown format: 0x%x\n", device->Format);
+ return ALC_FALSE;
+ }
}
if(SUCCEEDED(hr))
{