diff options
author | Chris Robinson <[email protected]> | 2012-02-14 11:44:57 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-14 11:44:57 -0800 |
commit | 1140b3ae837437966c9d2474fca8aa17d8193aa5 (patch) | |
tree | 6006870627cde536874d1b4aa9fe487655296534 /Alc/backends/oss.c | |
parent | 5e1d1a52bae6d22565bdfe7042da29e61197d36c (diff) |
Support signed and unsigned 32-bit int output
Diffstat (limited to 'Alc/backends/oss.c')
-rw-r--r-- | Alc/backends/oss.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Alc/backends/oss.c b/Alc/backends/oss.c index a5adc6ee..0e4a5393 100644 --- a/Alc/backends/oss.c +++ b/Alc/backends/oss.c @@ -206,6 +206,8 @@ static ALCboolean oss_reset_playback(ALCdevice *device) ossFormat = AFMT_U8; break; case DevFmtUShort: + case DevFmtInt: + case DevFmtUInt: case DevFmtFloat: device->FmtType = DevFmtShort; /* fall-through */ @@ -347,6 +349,8 @@ static ALCenum oss_open_capture(ALCdevice *device, const ALCchar *deviceName) ossFormat = AFMT_S16_NE; break; case DevFmtUShort: + case DevFmtInt: + case DevFmtUInt: case DevFmtFloat: free(data); ERR("%s capture samples not supported on OSS\n", DevFmtTypeString(device->FmtType)); |