From ebf44699ca59e91c8304ebd5c29c2f8347fb4bce Mon Sep 17 00:00:00 2001 From: Damontecres Date: Mon, 19 Oct 2026 13:35:00 -0400 Subject: [PATCH] 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 --- .../damontecres/wholphin/util/profile/DeviceProfileUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/damontecres/wholphin/util/profile/DeviceProfileUtils.kt b/app/src/main/java/com/github/damontecres/wholphin/util/profile/DeviceProfileUtils.kt index 988a3380..f1384a27 100644 --- a/app/src/main/java/com/github/damontecres/wholphin/util/profile/DeviceProfileUtils.kt +++ b/app/src/main/java/com/github/damontecres/wholphin/util/profile/DeviceProfileUtils.kt @@ -148,9 +148,9 @@ fun createDeviceProfile( videoCodec(Codec.Video.H264) if (preferAc3ForSurround) { - audioCodec(*allowedAudioCodecs) - } else { audioCodec(Codec.Audio.AC3) + } else { + audioCodec(*allowedAudioCodecs) } copyTimestamps = false