Skip to content

Support DTS-HD MA profiles#3234

Open
nift4 wants to merge 2 commits into
androidx:mainfrom
nift4:dtshdma
Open

Support DTS-HD MA profiles#3234
nift4 wants to merge 2 commits into
androidx:mainfrom
nift4:dtshdma

Conversation

@nift4
Copy link
Copy Markdown
Contributor

@nift4 nift4 commented May 23, 2026

Android supports a seperate AudioFormat.ENCODING_DTS_HD_MA and a MediaCodec
mime type with ;profile=dtsma since SDK 34, but ExoPlayer wasn't using this
even though the platform docs explicitly say to use the new encoding for
DTS-HD MA. Implement detection of DTS-HD MA and add plumbing to use this
constant where available, and fall back to previous behavior of using
ENCODING_DTS_HD otherwise for backwards compatibility with devices that
weren't updated to support the new constant/MIME type.

DTS-HD MA exists in two versions, in multi-layer version where fallback to
DTS decoders is valid and in a single-layer version where it is not. Add
detection for this and change fallbacks accordingly.

Issue: #2487

nift4 added 2 commits May 23, 2026 11:12
DTS-HD MA with core maps to both DTS-HD and DTS. Add wiring to support more
than one alternative MIME type.
Android supports a seperate AudioFormat.ENCODING_DTS_HD_MA and a MediaCodec
mime type with ;profile=dtsma since SDK 34, but ExoPlayer wasn't using this
even though the platform docs explicitly say to use the new encoding for
DTS-HD MA. Implement detection of DTS-HD MA and add plumbing to use this
constant where available, and fall back to previous behavior of using
ENCODING_DTS_HD otherwise for backwards compatibility with devices that
weren't updated to support the new constant/MIME type.

DTS-HD MA exists in two versions, in multi-layer version where fallback to
DTS decoders is valid and in a single-layer version where it is not. Add
detection for this and change fallbacks accordingly.

Issue: androidx#2487
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