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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Alc/backends/dsound.c b/Alc/backends/dsound.c
index 851dd9e2..f18d8dd5 100644
--- a/Alc/backends/dsound.c
+++ b/Alc/backends/dsound.c
@@ -650,6 +650,21 @@ static ALCenum DSoundOpenCapture(ALCdevice *device, const ALCchar *deviceName)
return ALC_INVALID_VALUE;
}
+ switch(device->FmtType)
+ {
+ case DevFmtByte:
+ case DevFmtUShort:
+ case DevFmtUInt:
+ WARN("%s capture samples not supported\n", DevFmtTypeString(device->FmtType));
+ return ALC_INVALID_ENUM;
+
+ case DevFmtUByte:
+ case DevFmtShort:
+ case DevFmtInt:
+ case DevFmtFloat:
+ break;
+ }
+
//Initialise requested device
pData = calloc(1, sizeof(DSoundCaptureData));
if(!pData)