Description
The TargetMixer
property of the SoundHandle
class specifies the audio mixer to which the sound should be routed. This allows for more advanced audio processing and mixing capabilities, enabling you to control how the sound is mixed with other audio sources.
Usage
To use the TargetMixer
property, you need to have an instance of SoundHandle
. You can then set this property to an instance of Sandbox.Audio.Mixer
that you want the sound to be routed to. This is useful for applying specific audio effects or mixing settings to the sound.
Example
// Assuming you have a SoundHandle instance named soundHandle
// and a Mixer instance named myMixer
soundHandle.TargetMixer = myMixer;
// This will route the sound to the specified mixer for processing.