Added in API level 34
Builder
class Builder
kotlin.Any | |
↳ | android.media.AudioMixerAttributes.Builder |
Builder class for AudioMixerAttributes
objects.
Summary
Public constructors | |
---|---|
Builder(format: AudioFormat) Constructs a new Builder with the defaults. |
Public methods | |
---|---|
AudioMixerAttributes |
build() Combines all attributes that have been set and returns a new |
AudioMixerAttributes.Builder |
setMixerBehavior(mixerBehavior: Int) Sets the mixer behavior for the audio mixer |
Public constructors
Builder
Added in API level 34
Builder(format: AudioFormat)
Constructs a new Builder with the defaults.
Parameters | |
---|---|
format |
AudioFormat: the AudioFormat for the audio mixer. This value cannot be null . |
Public methods
build
Added in API level 34
fun build(): AudioMixerAttributes
Combines all attributes that have been set and returns a new AudioMixerAttributes
object.
Return | |
---|---|
AudioMixerAttributes |
a new AudioMixerAttributes object This value cannot be null . |
setMixerBehavior
Added in API level 34
fun setMixerBehavior(mixerBehavior: Int): AudioMixerAttributes.Builder
Sets the mixer behavior for the audio mixer
Parameters | |
---|---|
mixerBehavior |
Int: must be MIXER_BEHAVIOR_DEFAULT or MIXER_BEHAVIOR_BIT_PERFECT . Value is android.media.AudioMixerAttributes#MIXER_BEHAVIOR_DEFAULT , or android.media.AudioMixerAttributes#MIXER_BEHAVIOR_BIT_PERFECT |
Return | |
---|---|
AudioMixerAttributes.Builder |
the same Builder instance. This value cannot be null . |