Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e966d5d7 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

media: add MediaFormat.KEY_AUDIO_HW_SYNC hidden key

This is already used by tunneled decoder clients.

Bug: 151997287
Change-Id: I62fc01d4519674d87b4bf6f3192f5099ef626bfa
parent f4df3421
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1060,6 +1060,17 @@ public final class MediaFormat {
     */
    public static final String KEY_AUDIO_SESSION_ID = "audio-session-id";

    /**
     * A key describing the audio hardware sync ID of the AudioTrack associated
     * to a tunneled video codec. The associated value is an integer.
     *
     * @hide
     *
     * @see MediaCodecInfo.CodecCapabilities#FEATURE_TunneledPlayback
     * @see AudioManager#getAudioHwSyncForSession
     */
    public static final String KEY_AUDIO_HW_SYNC = "audio-hw-sync";

    /**
     * A key for boolean AUTOSELECT behavior for the track. Tracks with AUTOSELECT=true
     * are considered when automatically selecting a track without specific user