Added in API level 34

AudioMixerAttributes

class AudioMixerAttributes : Parcelable
kotlin.Any
   ↳ android.media.AudioMixerAttributes

Class to represent the attributes of the audio mixer: its format, which represents by an AudioFormat object and mixer behavior.

Summary

Nested classes

Builder class for AudioMixerAttributes objects.

Constants
static Int

Constant indicating the audio mixer behavior is bit-perfect, which indicates there will not be mixing happen, the audio data will be sent as is down to the HAL.

static Int

Constant indicating the audio mixer behavior will follow the default platform behavior, which is mixing all audio sources in the mixer.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

AudioFormat

Return the format of the audio mixer.

Int

Returns the mixer behavior for this set of mixer attributes.

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<AudioMixerAttributes!>

Constants

MIXER_BEHAVIOR_BIT_PERFECT

Added in API level 34
static val MIXER_BEHAVIOR_BIT_PERFECT: Int

Constant indicating the audio mixer behavior is bit-perfect, which indicates there will not be mixing happen, the audio data will be sent as is down to the HAL.

Value: 1

MIXER_BEHAVIOR_DEFAULT

Added in API level 34
static val MIXER_BEHAVIOR_DEFAULT: Int

Constant indicating the audio mixer behavior will follow the default platform behavior, which is mixing all audio sources in the mixer.

Value: 0

Public methods

describeContents

Added in API level 34
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 34
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.

getFormat

Added in API level 34
fun getFormat(): AudioFormat

Return the format of the audio mixer. The format is an AudioFormat object, which includes encoding format, sample rate and channel mask or channel index mask.

Return
AudioFormat the format of the audio mixer. This value cannot be null.

getMixerBehavior

Added in API level 34
fun getMixerBehavior(): Int

Returns the mixer behavior for this set of mixer attributes.

Return
Int the mixer behavior Value is android.media.AudioMixerAttributes#MIXER_BEHAVIOR_DEFAULT, or android.media.AudioMixerAttributes#MIXER_BEHAVIOR_BIT_PERFECT

hashCode

Added in API level 34
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 34
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 34
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 34
static val CREATOR: Parcelable.Creator<AudioMixerAttributes!>