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. Even if the sound is not played due to the loopback setting, amplitude and visualization data will still be available.
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 sounds that are intended to be heard only by the local user under specific conditions.
Example
// Example of setting the Loopback property
SoundHandle soundHandle = new SoundHandle();
soundHandle.Loopback = true; // Enable loopback for this sound
// Check if the sound is set to loopback
if (soundHandle.Loopback)
{
// Perform actions knowing the sound is in loopback mode
}