DefaultAudioMixer.Factory


public final class DefaultAudioMixer.Factory implements AudioMixer.Factory


An AudioMixer.Factory implementation for DefaultAudioMixer instances.

Summary

Public constructors

Creates an instance.

Factory(boolean outputSilenceWithNoSources, boolean clipFloatOutput)

Creates an instance.

Public methods

DefaultAudioMixer

Public constructors

Factory

public Factory()

Creates an instance. This is equivalent to new Factory(false, true).

Factory

public Factory(boolean outputSilenceWithNoSources, boolean clipFloatOutput)

Creates an instance.

Parameters
boolean outputSilenceWithNoSources

Whether to output silence when there are no sources.

boolean clipFloatOutput

Whether to clip the output signal to be in the [-1.0, 1.0] range if the output encoding is ENCODING_PCM_FLOAT. This parameter is ignored for non-float output signals. For float output signals, non-float input signals are converted to float signals in the [-1.0, 1.0] range. All input signals (float or non-float) are then added and the result is clipped if and only if clipFloatOutput is true.

Public methods

create

public DefaultAudioMixer create()