lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

AudioTrack.MetricsConstants

public static final class AudioTrack.MetricsConstants
extends Object

java.lang.Object
   ↳ android.media.AudioTrack.MetricsConstants


Summary

Constants

String CHANNELMASK

Key to extract the channel mask information for this track from the AudioTrack.getMetrics() return value.

String CONTENTTYPE

Key to extract the Content Type for this track from the AudioTrack.getMetrics() return value.

String SAMPLERATE

Key to extract the sample rate for this track in Hz from the AudioTrack.getMetrics() return value.

String STREAMTYPE

Key to extract the Stream Type for this track from the AudioTrack.getMetrics() return value.

String USAGE

Key to extract the Content Type for this track from the AudioTrack.getMetrics() return value.

Inherited methods

Constants

CHANNELMASK

added in API level 28
public static final String CHANNELMASK

Key to extract the channel mask information for this track from the AudioTrack.getMetrics() return value. The value is a Long integer.

Constant Value: "android.media.audiorecord.channelmask"

CONTENTTYPE

added in API level 28
public static final String CONTENTTYPE

Key to extract the Content Type for this track from the AudioTrack.getMetrics() return value. The value is a String.

Constant Value: "android.media.audiotrack.type"

SAMPLERATE

added in API level 28
public static final String SAMPLERATE

Key to extract the sample rate for this track in Hz from the AudioTrack.getMetrics() return value. The value is an integer.

Constant Value: "android.media.audiorecord.samplerate"

STREAMTYPE

added in API level 28
public static final String STREAMTYPE

Key to extract the Stream Type for this track from the AudioTrack.getMetrics() return value. The value is a String.

Constant Value: "android.media.audiotrack.streamtype"

USAGE

added in API level 28
public static final String USAGE

Key to extract the Content Type for this track from the AudioTrack.getMetrics() return value. The value is a String.

Constant Value: "android.media.audiotrack.usage"