void ClearProcessors()

robot_2Generated
code_blocksInput

Description

The ClearProcessors method is used to remove all audio processors from the current Mixer instance. This effectively resets the processor list, allowing you to start fresh without any previously added processors affecting the audio output.

Usage

To use the ClearProcessors method, simply call it on an instance of the Mixer class. This will clear all processors that have been added to the mixer, which can be useful if you want to reconfigure the audio processing pipeline from scratch.

Example

// Create a new Mixer instance
Mixer myMixer = new Mixer();

// Add some processors to the mixer
myMixer.AddProcessor(new AudioProcessor());
myMixer.AddProcessor(new AudioProcessor());

// Clear all processors from the mixer
myMixer.ClearProcessors();

// At this point, the mixer has no processors affecting its audio output.