fcd0c30c
by Lakulish Antani at 2026-07-17T17:08:09+02:00
dsound: Add quad and 5.1 to 7.1 conversions.
If the system's PulseAudio sink is (say) 7.1, and the game has
configured the DirectSound buffer to be (say) 5.1, then the format
conversion code just copies the first 2 channels of the game's
buffer to the first 2 channels of the PulseAudio buffer, leaving
the remaining 6 channels of the PulseAudio buffer untouched. This
can result in garbage/noise in the output.
This change adds explicit handling for quad -> 7.1 and 5.1 -> 7.1
conversion.