AudioDescriptor
open class AudioDescriptor : Parcelable
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 |
static Int |
The Extended Display Identification Data (EDID) standard for a short audio descriptor.
|
static Int |
The audio standard is not specified.
|
static Int |
The standard for a Speaker Allocation Data Block (SADB).
|
static Int |
The standard for a Vendor-Specific Audio Data Block (VSADB).
|
Inherited constants |
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents() : indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel : the object being written is a return value, that is the result of a function such as "Parcelable someFunction() ", "void someFunction(out Parcelable) ", or "void someFunction(inout Parcelable) ". Some implementations may want to release resources at this point.
|
|
Public methods |
open Int |
|
open Boolean |
|
open ByteArray |
|
open Int |
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.
|
open Int |
|
open Int |
|
open String |
|
open Unit |
Flatten this object in to a Parcel.
|
Constants
STANDARD_EDID
static val STANDARD_EDID: Int
The Extended Display Identification Data (EDID) standard for a short audio descriptor.
Value: 1
STANDARD_NONE
static val STANDARD_NONE: Int
The audio standard is not specified.
Value: 0
STANDARD_SADB
static val STANDARD_SADB: Int
The standard for a Speaker Allocation Data Block (SADB).
Value: 2
STANDARD_VSADB
static val STANDARD_VSADB: Int
The standard for a Vendor-Specific Audio Data Block (VSADB).
Value: 3
Public methods
describeContents
open fun describeContents(): Int
equals
open fun equals(other: Any?): Boolean
Parameters |
obj |
the reference object with which to compare. |
Return |
Boolean |
true if this object is the same as the obj argument; false otherwise. |
getDescriptor
open fun getDescriptor(): ByteArray
Return |
ByteArray |
a byte array that describes audio playback/capture capabilities as encoded by the standard for this AudioDescriptor. This value cannot be null . |
getEncapsulationType
open fun getEncapsulationType(): Int
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 android.media.AudioTrack
API is supported. But playback with android.media.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.
getStandard
open fun getStandard(): Int
hashCode
open fun hashCode(): Int
Return |
Int |
a hash code value for this object. |
toString
open fun toString(): String
Return |
String |
a string representation of the object. |
writeToParcel
open fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Properties