output/winmm: 8 bit playback is not supported

Everything must be S16.
This commit is contained in:
Max Kellermann 2016-11-07 08:53:57 +01:00
parent ee026386e5
commit 1859ba5ec8
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@ -2,6 +2,8 @@ ver 0.19.20 (not yet released)
* decoder
- ffmpeg: ignore empty packets
- sidplay: fix playback speed with libsidplayfp
* output
- winmm: fix 8 bit playback
ver 0.19.19 (2016/08/23)
* decoder

View File

@ -148,10 +148,10 @@ winmm_output_open(AudioOutput *ao, AudioFormat &audio_format,
}
switch (audio_format.format) {
case SampleFormat::S8:
case SampleFormat::S16:
break;
case SampleFormat::S8:
case SampleFormat::S24_P32:
case SampleFormat::S32:
case SampleFormat::FLOAT: