From: Kimmo Myllyvirta Subject: [PATCH] xaudio2: Add support for float formats with more than 2 channels. Message-Id: <71e94e63-4f4d-c9d7-2600-ad0f9a5dd8c4@gmail.com> Date: Sun, 12 Nov 2017 12:50:23 +0200 Fixes https://bugs.winehq.org/show_bug.cgi?id=42414 See also http://openal.org/pipermail/openal/2014-December/000287.html From 79c0309205ec566758f71e88242e77b82a07a79b Mon Sep 17 00:00:00 2001 From: Kimmo Myllyvirta Date: Sun, 12 Nov 2017 12:35:34 +0200 Subject: [PATCH] xaudio2: Add support for float formats with more than 2 channels. Signed-off-by: Kimmo Myllyvirta --- dlls/xaudio2_7/xaudio_dll.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/xaudio2_7/xaudio_dll.c b/dlls/xaudio2_7/xaudio_dll.c index a091629..13f5916 100644 --- a/dlls/xaudio2_7/xaudio_dll.c +++ b/dlls/xaudio2_7/xaudio_dll.c @@ -499,6 +499,14 @@ static ALenum get_al_format(const WAVEFORMATEX *fmt) return AL_FORMAT_MONO_FLOAT32; case 2: return AL_FORMAT_STEREO_FLOAT32; + case 4: + return AL_FORMAT_QUAD32; + case 6: + return AL_FORMAT_51CHN32; + case 7: + return AL_FORMAT_61CHN32; + case 8: + return AL_FORMAT_71CHN32; } } } -- 2.7.4