Commit 6377f913 by Marc Baechinger

Merge pull request #10322 from DolbyLaboratories:dev-v2-multichannel

PiperOrigin-RevId: 454641746
(cherry picked from commit 970eb444)
parent b8c8a413
...@@ -69,6 +69,10 @@ ...@@ -69,6 +69,10 @@
for audio passthrough when the format audio channel count is unset, for audio passthrough when the format audio channel count is unset,
which occurs with HLS chunkless preparation which occurs with HLS chunkless preparation
([10204](https://github.com/google/ExoPlayer/issues/10204)). ([10204](https://github.com/google/ExoPlayer/issues/10204)).
* Configure `AudioTrack` with channel mask
`AudioFormat.CHANNEL_OUT_7POINT1POINT4` if the decoder outputs 12
channel PCM audio
([#10322](#https://github.com/google/ExoPlayer/pull/10322).
* DRM * DRM
* Ensure the DRM session is always correctly updated when seeking * Ensure the DRM session is always correctly updated when seeking
immediately after a format change immediately after a format change
......
...@@ -1723,6 +1723,10 @@ public final class Util { ...@@ -1723,6 +1723,10 @@ public final class Util {
// 8 ch output is not supported before Android L. // 8 ch output is not supported before Android L.
return AudioFormat.CHANNEL_INVALID; return AudioFormat.CHANNEL_INVALID;
} }
case 12:
return Util.SDK_INT >= 32
? AudioFormat.CHANNEL_OUT_7POINT1POINT4
: AudioFormat.CHANNEL_INVALID;
default: default:
return AudioFormat.CHANNEL_INVALID; return AudioFormat.CHANNEL_INVALID;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment