You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dolby Digital 5.1 is down mixed to 2 channels when “continuous audio connection” is disabled #24
I disabled “Continuous Audio Connection” which unmasked an Aether bug.
When “continuous audio connection” is off, tvOS outputs 2-channel PCM by default. TV HDMI info shows “digital stereo”.
When a video with 5.1 ac3 or eac3 plays in other AVPlayer based Jellyfin apps, TV shows “Dolby Digital” as soon as video starts.
When playing the same 5.1 eac3 file in Sodalite, the TV stays “digital stereo” indicating PCM 2.0 instead of “Dolby Digital”.
Thankfully the log explains why! When “continuous audio connection” is on, log shows HDMI channels = 32 and Dolby passes through.
When “continuous audio connection” is OFF, log shows HDMI connections = 2 and warns AVPlayer will downmix audio to stereo (which does happen because TV shows “digital stereo“).
I don’t understand why this is happening, but AVPlayer should pass through the 5.1 track, not downmix it to stereo.
Hopefully a simple fix! I’ll do more testing & reading later.
Fixed, and you nailed the root cause. Your hunch that a manual setting was suppressing AVPlayer's automatic PCM to Dolby switch was exactly right.
The engine was activating the shared AVAudioSession once at process launch. With Continuous Audio Connection off, the HDMI link idles at stereo at that moment, so activating the session there negotiated the route down to 2 channels and pinned it. Nothing later could lift it: setActive deactivate/reactivate and setPreferredOutputNumberOfChannels were all confirmed no-ops on tvOS on device.
The fix removes that launch time activation. The native video path now lets AVPlayerViewController own session activation per playback, so tvOS negotiates the route against the live sink when playback actually starts. On a cold stereo idle Sonos, a 5.1 EAC3 file now switches to 5.1 correctly.
One note in case you read the logs: the "downmix to 2 channels" warning was sampled at readyToPlay, while the player is still paused and the route has not finished negotiating. That was a false alarm and is also fixed now, with the route re-checked once playback is actually rolling.
In the latest AetherEngine, ships in the next Sodalite build. Thanks for the sharp diagnosis and the testing.
Activity
fix(audio): re-assert multichannel session at readyToPlay for continu…
fix(audio): drop -50 deactivate cycle from multichannel reassert, iso…
fix(audio): force HDMI route renegotiation via session deactivate/rea…
revert(audio): drop multichannel session reassert, disproven on device (
DrHurt commentedon Jun 5, 2026
I see you’re working on this now! Thanks.
It’s a bit odd because AVPlayer should handle this PCM to Dolby change automatically without any manual intervention from Aether!
I wonder if this is a bug resulting from any of the workarounds previously implemented while debugging EAC3 copy / Atmos / Bluetooth.
DrHurt commentedon Jun 5, 2026
Maybe try removing any manual settings so AVPlayer defaults kick in!
fix(audio): let AVKit own session activation for native path, scope m…
fix(audio): sample audio-route capability after playback settles, not…
superuser404notfound commentedon Jun 5, 2026
Fixed, and you nailed the root cause. Your hunch that a manual setting was suppressing AVPlayer's automatic PCM to Dolby switch was exactly right.
The engine was activating the shared
AVAudioSessiononce at process launch. With Continuous Audio Connection off, the HDMI link idles at stereo at that moment, so activating the session there negotiated the route down to 2 channels and pinned it. Nothing later could lift it:setActivedeactivate/reactivate andsetPreferredOutputNumberOfChannelswere all confirmed no-ops on tvOS on device.The fix removes that launch time activation. The native video path now lets
AVPlayerViewControllerown session activation per playback, so tvOS negotiates the route against the live sink when playback actually starts. On a cold stereo idle Sonos, a 5.1 EAC3 file now switches to 5.1 correctly.One note in case you read the logs: the "downmix to 2 channels" warning was sampled at
readyToPlay, while the player is still paused and the route has not finished negotiating. That was a false alarm and is also fixed now, with the route re-checked once playback is actually rolling.In the latest AetherEngine, ships in the next Sodalite build. Thanks for the sharp diagnosis and the testing.
docs(readme): correct the ch=2 downmix limitation after the #24 audio…
docs(changelog): add 2.2.1 release entry
fix(player): pre-activate the audio session at first load to kill the…
fix(audio): declare AVAudioSession category off-main to clear the han…
fix(audio): declare .default route-sharing policy on iOS, keep .longF…
fix(native): deactivate AVAudioSession on final teardown to stop loop…
fix(seek,audio): close review findings in the Plozz patch stack
feat(audio): optionally deactivate AVAudioSession on final teardown
feat(audio): optionally deactivate AVAudioSession on final teardown
iOS: probe-clean audio-session hygiene — category once, no multichann…
fix(audio): every load declares its audio session, and hosts reactiva…
fix(audio): declare the session category once per process, and let ho…
fix(audio): every load declares its audio session, and hosts reactiva…