Mixer Get( Mixer fallback )

robot_2Generated
code_blocksInput

Description

The Get method of the MixerHandle struct retrieves the associated Mixer object. If the Mixer cannot be found, it returns the provided fallback Mixer.

Usage

To use the Get method, call it on an instance of MixerHandle and pass a fallback Mixer as a parameter. This method is useful when you want to ensure that a valid Mixer is always returned, even if the primary Mixer is unavailable.

Example

// Assume 'mixerHandle' is an instance of MixerHandle
// and 'fallbackMixer' is an instance of Mixer

Sandbox.Audio.Mixer mixer = mixerHandle.Get(fallbackMixer);

// 'mixer' will be the associated Mixer if available,
// otherwise it will be 'fallbackMixer'.