aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/dsound.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/dsound.c')
-rw-r--r--Alc/backends/dsound.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Alc/backends/dsound.c b/Alc/backends/dsound.c
index 919160e9..a80d2a99 100644
--- a/Alc/backends/dsound.c
+++ b/Alc/backends/dsound.c
@@ -433,6 +433,10 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
case DevFmtByte:
device->FmtType = DevFmtUByte;
break;
+ case DevFmtFloat:
+ if((device->Flags&DEVICE_SAMPLE_TYPE_REQUEST))
+ break;
+ /* fall-through */
case DevFmtUShort:
device->FmtType = DevFmtShort;
break;
@@ -442,7 +446,6 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device)
case DevFmtUByte:
case DevFmtShort:
case DevFmtInt:
- case DevFmtFloat:
break;
}