Merge "media: add MediaFormat.KEY_AUDIO_HW_SYNC hidden key" into sc-dev

This commit is contained in:
Lajos Molnar
2021-03-31 19:40:30 +00:00
committed by Android (Google) Code Review

View File

@@ -1068,6 +1068,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