bool Loopback { get; set; }

robot_2Generated
code_blocksInput

Description

The Loopback property of the SoundHandle class is a boolean value that determines whether a sound should be played only when the voice_loopback setting is enabled. This is typically used for sounds that represent the local user's voice, ensuring that they are not played back unless explicitly allowed by the loopback setting. Despite the sound not being played, amplitude and visualization data remain accessible.

Usage

To use the Loopback property, you can set it to true or false depending on whether you want the sound to be subject to the loopback condition. This is useful for managing local voice playback in applications where you want to control when the user's voice is heard.

Example

// Example of setting the Loopback property
SoundHandle soundHandle = new SoundHandle();
soundHandle.Loopback = true; // Enable loopback for this sound

// Check if loopback is enabled
if (soundHandle.Loopback)
{
    // Perform actions knowing the sound is in loopback mode
}