Add 5.1 surround output

The mixer folded the game's 5.1 device sink down to stereo and IAudioDevice told the game it had two channels.
audio_channels (auto, stereo, 5.1; Sound tab, Speakers) now opens the SDL stream with six channels in the device sink's
order (FL FR C LFE RL RR) and reports six to the game, which then mixes for 5.1. auto picks 5.1 when the default
playback device has six or more channels (a 5.1 or 7.1 speaker setup in Windows) and stereo otherwise; stereo keeps
the existing downmix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Specht2010andClaude Opus 5.5 committed 2026-11-01 17:50:30 -04:00
1 parent 6c2595275d
commit 963901cc12
7 files changed
+101 -44

No files matched your search

+3
View File
@@ -218,6 +218,9 @@
# audio_prefill_ms = 20
# Volume in percent (0 to 100), on top of the game's own. Changes while the game runs take effect at once.
# volume = 100
# Speakers: auto (5.1 when the Windows speaker setup has six or more channels, stereo otherwise), stereo or 5.1. The
# game is told the same channel count and mixes for it. Takes effect at the next start.
# audio_channels = auto
[input]
# Gamepad motion controls (0 = off) and vibration (0 = off).