The Meter
property of the Sandbox.Audio.Mixer
class provides access to an AudioMeter
object. This object allows for monitoring the output of the audio mixer, enabling developers to analyze audio levels and make adjustments as necessary.
The Meter
property of the Sandbox.Audio.Mixer
class provides access to an AudioMeter
object. This object allows for monitoring the output of the audio mixer, enabling developers to analyze audio levels and make adjustments as necessary.
To use the Meter
property, you must first have an instance of the Sandbox.Audio.Mixer
class. Once you have the mixer instance, you can access the Meter
property to retrieve the AudioMeter
object. This object can then be used to monitor the audio output levels of the mixer.
// Assuming 'mixer' is an instance of Sandbox.Audio.Mixer Sandbox.Audio.AudioMeter audioMeter = mixer.Meter; // Use audioMeter to monitor audio levels float currentLevel = audioMeter.CurrentLevel; // Perform operations based on the current audio level if (currentLevel > 0.8f) { // Take action if the audio level is too high }