AudioMixerAttributes.Builder


public static final class AudioMixerAttributes.Builder
extends Object

java.lang.Object
   ↳ android.media.AudioMixerAttributes.Builder


Builder class for AudioMixerAttributes objects.

Summary

Public constructors

Builder(AudioFormat format)

Constructs a new Builder with the defaults.

Public methods

AudioMixerAttributes build()

Combines all attributes that have been set and returns a new AudioMixerAttributes object.

AudioMixerAttributes.Builder setMixerBehavior(int mixerBehavior)

Sets the mixer behavior for the audio mixer

Inherited methods

Public constructors

Builder

Added in API level 34
public Builder (AudioFormat format)

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
public AudioMixerAttributes build ()

Combines all attributes that have been set and returns a new AudioMixerAttributes object.

Returns
AudioMixerAttributes a new AudioMixerAttributes object This value cannot be null.

setMixerBehavior

Added in API level 34
public AudioMixerAttributes.Builder setMixerBehavior (int mixerBehavior)

Sets the mixer behavior for the audio mixer

Parameters
mixerBehavior int: must be AudioMixerAttributes.MIXER_BEHAVIOR_DEFAULT or AudioMixerAttributes.MIXER_BEHAVIOR_BIT_PERFECT. Value is AudioMixerAttributes.MIXER_BEHAVIOR_DEFAULT, or AudioMixerAttributes.MIXER_BEHAVIOR_BIT_PERFECT

Returns
AudioMixerAttributes.Builder the same Builder instance. This value cannot be null.