AudioMixerAttributes
class AudioMixerAttributes : Parcelable
Class to represent the attributes of the audio mixer: its format, which represents by an AudioFormat
object and mixer behavior.
Summary
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 |
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 |
Int |
|
Boolean |
|
AudioFormat |
Return the format of the audio mixer.
|
Int |
Returns the mixer behavior for this set of mixer attributes.
|
Int |
|
String |
|
Unit |
Flatten this object in to a Parcel.
|
Constants
MIXER_BEHAVIOR_BIT_PERFECT
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
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
fun describeContents(): Int
equals
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. |
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
fun getMixerBehavior(): Int
Returns the mixer behavior for this set of mixer attributes.
hashCode
fun hashCode(): Int
Return |
Int |
a hash code value for this object. |
toString
fun toString(): String
Return |
String |
a string representation of the object. |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
Properties