From 3bd6a5683a34a9e4027c6da32d7781f403071cdd Mon Sep 17 00:00:00 2001 From: Andy Grundman Date: Sat, 12 Oct 2024 00:04:57 -0400 Subject: [PATCH] Windows: don't try to set Steam speakers to 32-bit mode to avoid clobbering spatial audio settings --- src/platform/windows/audio.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/windows/audio.cpp b/src/platform/windows/audio.cpp index bc208128bc7..3335eeb0b0f 100644 --- a/src/platform/windows/audio.cpp +++ b/src/platform/windows/audio.cpp @@ -124,9 +124,8 @@ namespace { create_virtual_sink_waveformats() { if constexpr (channel_count == 2) { auto channel_mask = waveformat_mask_stereo; + // only choose 24 or 16-bit formats to avoid clobbering existing Dolby/DTS spatial audio settings return { - create_waveformat(sample_format_e::f32, channel_count, channel_mask), - create_waveformat(sample_format_e::s32, channel_count, channel_mask), create_waveformat(sample_format_e::s24in32, channel_count, channel_mask), create_waveformat(sample_format_e::s24, channel_count, channel_mask), create_waveformat(sample_format_e::s16, channel_count, channel_mask),