mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
CRITICAL BUG FIX: The previous code assumed incorrect channel ordering for multichannel audio, breaking 5.1 (6-channel) configurations. Problem: - Code assumed channel order: FL, FR, RL, RR, C, LFE o systems- Actual 5.1 standard order: FL, FR, C, LFE, RL, RR - This caused center/LFE to receive rear audio and vice versa - Users had to force stereo mode to get working audio Solution: - Parse dwChannelMask from WAVEFORMATEXTENSIBLE to determine actual channel positions - Map stereo input to correct output channels based on the mask - Properly handles 5.1, 7.1, and other multichannel configurations - Safely handles non-standard channel layouts The channel mapping now works correctly for all standard speaker configurations by querying the device's actual channel layout instead of assuming a fixed order.
Just open the MSVC project file and build.