Description
The RemoveProcessor
method is used to remove a specified AudioProcessor
from the Mixer
. This method is part of the Sandbox.Audio.Mixer
class, which is responsible for managing audio processing by mixing multiple audio sources, adjusting their volumes, and outputting the final audio mix.
Usage
To use the RemoveProcessor
method, you need to have an instance of the Mixer
class and an instance of the AudioProcessor
that you wish to remove. Call the method with the AudioProcessor
as the parameter.
Ensure that the AudioProcessor
you are trying to remove is already added to the Mixer
. If the processor is not part of the mixer, the method will not perform any action.
Example
// Assuming 'mixer' is an instance of Sandbox.Audio.Mixer
// and 'audioProcessor' is an instance of Sandbox.Audio.AudioProcessor
// Remove the audio processor from the mixer
mixer.RemoveProcessor(audioProcessor);