Mixer Get( Mixer fallback )

book_4_sparkGenerated
code_blocksInput

Description

The Get method of the MixerHandle struct is used to retrieve the associated Mixer object. If the Mixer cannot be retrieved, the method returns the provided fallback Mixer instead.

Usage

To use the Get method, you need an instance of MixerHandle and a fallback Mixer object. Call the method on the MixerHandle instance, passing the fallback Mixer as a parameter.

Example

// Assuming 'mixerHandle' is an instance of MixerHandle and 'fallbackMixer' is a Mixer object
Sandbox.Audio.Mixer retrievedMixer = mixerHandle.Get(fallbackMixer);

// Use 'retrievedMixer' as needed