public final class

DefaultAudioMixer.Factory

extends java.lang.Object

implements AudioMixer.Factory

 java.lang.Object

↳androidx.media3.transformer.DefaultAudioMixer.Factory

Overview

An AudioMixer.Factory implementation for DefaultAudioMixer instances.

Summary

Constructors
publicFactory()

Creates an instance.

publicFactory(boolean outputSilenceWithNoSources, boolean clipFloatOutput)

Creates an instance.

Methods
public DefaultAudioMixercreate()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Factory()

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

public Factory(boolean outputSilenceWithNoSources, boolean clipFloatOutput)

Creates an instance.

Parameters:

outputSilenceWithNoSources: Whether to output silence when there are no sources.
clipFloatOutput: Whether to clip the output signal to be in the [-1.0, 1.0] range if the output encoding is C.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.

Methods

public DefaultAudioMixer create()