# Print output for @column tags ?> AudioDescriptor - Android SDK | Android Developers

Most visited

Recently visited

AudioDescriptor

public class AudioDescriptor
extends Object

java.lang.Object
   ↳ android.media.AudioDescriptor


The AudioDescriptor contains the information to describe the audio playback/capture capabilities. The capabilities are described by a byte array, which is defined by a particular standard. This is used when the format is unrecognized to the platform.

Summary

Constants

int STANDARD_EDID

The Extended Display Identification Data (EDID) standard for a short audio descriptor.

int STANDARD_NONE

The audio standard is not specified.

Public methods

byte[] getDescriptor()
int getEncapsulationType()

The encapsulation type indicates what encapsulation type is required when the framework is using this extra audio descriptor for playing to a device exposing this audio profile.

int getStandard()

Inherited methods

Constants

STANDARD_EDID

public static final int STANDARD_EDID

The Extended Display Identification Data (EDID) standard for a short audio descriptor.

Constant Value: 1 (0x00000001)

STANDARD_NONE

public static final int STANDARD_NONE

The audio standard is not specified.

Constant Value: 0 (0x00000000)

Public methods

getDescriptor

public byte[] getDescriptor ()

Returns
byte[] a byte array that describes audio playback/capture capabilities as encoded by the standard for this AudioDescriptor. This value cannot be null.

getEncapsulationType

public int getEncapsulationType ()

The encapsulation type indicates what encapsulation type is required when the framework is using this extra audio descriptor for playing to a device exposing this audio profile. When encapsulation is required, only playback with AudioTrack API is supported. But playback with MediaPlayer is not. When an encapsulation type is required, the AudioFormat encoding selected when creating the AudioTrack must match the encapsulation type, e.g AudioFormat#ENCODING_IEC61937 for AudioProfile.AUDIO_ENCAPSULATION_TYPE_IEC61937.

Returns
int an integer representing the encapsulation type Value is AudioProfile.AUDIO_ENCAPSULATION_TYPE_NONE, or AudioProfile.AUDIO_ENCAPSULATION_TYPE_IEC61937

See also:

getStandard

public int getStandard ()

Returns
int the standard that defines audio playback/capture capabilities. Value is STANDARD_NONE, or STANDARD_EDID