float Amplitude { get; set; }

robot_2Generated
code_blocksInput

Description

The Amplitude property of the SoundHandle class provides a measure of the audio loudness. It is a floating-point value that represents the current amplitude of the sound, which can be used to determine how loud the sound is at any given moment.

Usage

To access the Amplitude property, you need to have an instance of the SoundHandle class. This property is read-only and provides real-time data about the sound's loudness.

Example

// Assuming you have a SoundHandle instance named soundHandle
float currentAmplitude = soundHandle.Amplitude;

// Use the amplitude value for visualizations or other logic
if (currentAmplitude > 0.5f)
{
    // Perform some action based on the loudness
}