Skip to content

Mixer

Mixer & Pipeline API

Types

Name Description
Amplimix Amplitude Audio Mixer.
AmplimixLayer A single layer in the mixer.
ConsumerNodeInstance Interface for Amplimix pipeline nodes that can consume audio data from an input buffer.
InputNodeInstance Class used to mark the input of the pipeline.
MixerNodeInstance Base class for Amplimix pipeline nodes that can mix audio data from multiple input buffers.
Node Base class for Amplimix pipeline nodes.
NodeInstance An instance of an Amplimix pipeline node.
OutputNodeInstance Class used to mark the output of the pipeline.
Pipeline A pipeline assembles a set of nodes to process audio data.
PipelineInstance Represents an instance of a pipeline for a specific layer.
ProcessorNodeInstance Base class for Amplimix pipeline nodes that can process audio data in-place.
ProviderNodeInstance Interface for Amplimix pipeline nodes that can provide audio data to an output buffer.

Functions

Name Description
AM_CALLBACK Called just before the mixer process audio data.
AM_CALLBACK Called just after the mixer process audio data.

Function Details

AM_CALLBACK

AM_CALLBACK(void, BeforeMixCallback)(Amplimix* mixer, AmVoidPtr buffer, AmUInt32 frames)

Called just before the mixer process audio data.

Parameter mixer
The Amplimix instance.
Parameter buffer
The audio buffer to be mixed.
Parameter frames
The number of audio frames to be mixed.

AM_CALLBACK(void, AfterMixCallback)(Amplimix* mixer, AmVoidPtr buffer, AmUInt32 frames)

Called just after the mixer process audio data.

Parameter mixer
The Amplimix instance.
Parameter buffer
The audio buffer that has been mixed.
Parameter frames
The number of audio frames that have been mixed.