Fix experimental settings for AC3 surround sound (#2101)

## Description
The refactor in https://github.com/damontecres/Wholphin/pull/1955
(included in `v1.0.9`) swapped the branches for the experimental "Use
AC3 for surround sound audio" breaking it.

Unfortunately, there isn't a real workaround to get the AC3 behavior
back. With the experimental settings enabled & "Use AC3 for surround
sound audio" _disabled_, surround sound audio will transcode to stereo
AAC. Otherwise if experimental settings are _disabled_ and/or "Use AC3
for surround sound audio" is _enabled_, there's no effect.

### Related issues
Credit to @StefanBS who opened #2090, but closed it before I verified
the bug
Closes #2093

### Testing
Manually via emulator

## Screenshots
N/A

## AI or LLM usage
None
This commit is contained in:
Damontecres 2026-10-19 13:35:00 -04:00 • committed by GitHub
parent 621686d8e2
commit ebf44699ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,9 +148,9 @@ fun createDeviceProfile(
videoCodec(Codec.Video.H264)
if (preferAc3ForSurround) {
audioCodec(*allowedAudioCodecs)
} else {
audioCodec(Codec.Audio.AC3)
} else {
audioCodec(*allowedAudioCodecs)
}
copyTimestamps = false