Google is committed to advancing racial equity for Black communities. See how.
Added in API level 30

AudioMetadata.Format

public static class AudioMetadata.Format
extends Object

java.lang.Object
   ↳ android.media.AudioMetadata.Format


A container class for AudioMetadata Format keys.

Summary

Fields

public static final Key<Boolean> KEY_ATMOS_PRESENT

A key representing the presence of Atmos in an E-AC3 stream.

public static final Key<Integer> KEY_AUDIO_ENCODING

A key representing the audio encoding used for the stream.

public static final Key<Integer> KEY_BIT_RATE

A key representing the bitrate of the encoded stream used in If the stream is variable bitrate, this is the average bitrate of the stream.

public static final Key<Integer> KEY_BIT_WIDTH

A key representing the bit width of an element of decoded data.

public static final Key<Integer> KEY_CHANNEL_MASK

A key representing the audio channel mask of the stream.

public static final Key<String> KEY_MIME

A key representing the codec mime string.

public static final Key<Integer> KEY_SAMPLE_RATE

A key representing the audio sample rate in Hz of the stream.

Inherited methods

Fields

KEY_ATMOS_PRESENT

Added in API level 30
public static final Key<Boolean> KEY_ATMOS_PRESENT

A key representing the presence of Atmos in an E-AC3 stream. A Boolean value which is true if Atmos is present in an E-AC3 stream.

KEY_AUDIO_ENCODING

Added in API level 30
public static final Key<Integer> KEY_AUDIO_ENCODING

A key representing the audio encoding used for the stream. This is the same encoding used in AudioFormat#getEncoding(). An Integer value.

KEY_BIT_RATE

Added in API level 30
public static final Key<Integer> KEY_BIT_RATE

A key representing the bitrate of the encoded stream used in If the stream is variable bitrate, this is the average bitrate of the stream. The unit is bits per second. An Integer value.

KEY_BIT_WIDTH

Added in API level 30
public static final Key<Integer> KEY_BIT_WIDTH

A key representing the bit width of an element of decoded data. An Integer value.

KEY_CHANNEL_MASK

Added in API level 30
public static final Key<Integer> KEY_CHANNEL_MASK

A key representing the audio channel mask of the stream. An Integer value.

KEY_MIME

Added in API level 30
public static final Key<String> KEY_MIME

A key representing the codec mime string. A String value.

KEY_SAMPLE_RATE

Added in API level 30
public static final Key<Integer> KEY_SAMPLE_RATE

A key representing the audio sample rate in Hz of the stream. An Integer value.