From 1859ba5ec81de2bb2a2660030748c1b915db0631 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 7 Nov 2016 08:53:57 +0100 Subject: [PATCH] output/winmm: 8 bit playback is not supported Everything must be S16. --- NEWS | 2 ++ src/output/plugins/WinmmOutputPlugin.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 0f11eea76..68d33c2b7 100644 --- a/NEWS +++ b/NEWS @@ -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 diff --git a/src/output/plugins/WinmmOutputPlugin.cxx b/src/output/plugins/WinmmOutputPlugin.cxx index e5c5a6f0c..1d54aaf6b 100644 --- a/src/output/plugins/WinmmOutputPlugin.cxx +++ b/src/output/plugins/WinmmOutputPlugin.cxx @@ -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: