Skip to content

Commit

Permalink
fix(audio/windows): don't set virtual speakers higher than 24-bit mode (
Browse files Browse the repository at this point in the history
#3294)

Windows: don't try to set Steam speakers to 32-bit mode to avoid clobbering spatial audio settings
  • Loading branch information
andygrundman authored Oct 14, 2024
1 parent 5b435fd commit 3744c43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/windows/audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3744c43

Please sign in to comment.