mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Merge pull request #10322 from DolbyLaboratories:dev-v2-multichannel
PiperOrigin-RevId: 454641746
(cherry picked from commit 970eb4444c)
This commit is contained in:
parent
b8c8a41342
commit
6377f9130d
2 changed files with 8 additions and 0 deletions
|
|
@ -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 {
|
||||||
// 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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue