diff options
author | Chris Robinson <[email protected]> | 2011-05-28 21:21:37 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-28 21:21:37 -0700 |
commit | b07901f1a056690d667db040db7c8977803ed18e (patch) | |
tree | b876c3de93e743de49fba33e6df698126f1df382 | |
parent | a15a1abb21749aa8ca2382934948373be78c9177 (diff) |
Set the subformat type when an unknown one is encountered
-rw-r--r-- | Alc/mmdevapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/mmdevapi.c b/Alc/mmdevapi.c index cbeba71e..44ef45bc 100644 --- a/Alc/mmdevapi.c +++ b/Alc/mmdevapi.c @@ -454,6 +454,7 @@ static ALCboolean MMDevApiResetPlayback(ALCdevice *device) device->FmtType = DevFmtShort; OutputType.Format.wBitsPerSample = 16; OutputType.Samples.wValidBitsPerSample = OutputType.Format.wBitsPerSample; + OutputType.SubFormat = KSDATAFORMAT_SUBTYPE_PCM; } } |