Skip to content

Use stereo channel mask for AC-4 passthrough #2734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dwhea
Copy link
Contributor

@dwhea dwhea commented Aug 19, 2025

The Ac4Util format builder can return channel counts up to 21. These channel counts do not have a matching channel mask. To support AC-4 offload/passthrough to offloaded decoders, override the channel count to 2 so that offload/passthrough AudioTracks are built with stereo channel mask so they can reach AC-4 offloaded decoders.

This change restores the channel count used prior to 29bda3b for passthrough.

The Ac4Util format builder can return channel counts up to 21. These
channel counts do not have a matching channel mask. To support AC-4
offload/passthrough to offloaded decoders, override the channel count
to 2 so that offload/passthrough AudioTracks are built with stereo
channel mask so they can reach AC-4 offloaded decoders.

This change restores the channel count used prior to
29bda3b for passthrough.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant