Skip to content

Dolby Digital 5.1 is down mixed to 2 channels when “continuous audio connection” is disabled #24

Closed

Description

@DrHurt

What happened?

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.

Steps to reproduce

.

AetherEngine version or commit SHA

2.1.3

Host app

Sodalite

Platform

tvOS

OS version

26.5

Device / chip

4K

Playback path

Native AVPlayer

Source media (for playback bugs)

No response

Error codes / log lines


Anything else

No response

Activity

  1. added
    bug
    on Jun 4, 2026
  2. DrHurt commented on Jun 5, 2026

    @DrHurt
    ContributorAuthor

    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.

  3. DrHurt commented on Jun 5, 2026

    @DrHurt
    ContributorAuthor

    Maybe try removing any manual settings so AVPlayer defaults kick in!

  4. superuser404notfound commented on Jun 5, 2026

    @superuser404notfound
    Owner

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions