bool IsStopped { get; set; }

robot_2Generated
code_blocksInput

Description

The IsStopped property of the SoundHandle class indicates whether the sound associated with this handle has been stopped. It returns true if the sound is no longer playing, otherwise false.

Usage

Use the IsStopped property to check if a sound has been stopped. This can be useful for determining whether to restart a sound or perform other actions based on the sound's playback state.

Example

// Example of using the IsStopped property
SoundHandle soundHandle = new SoundHandle();

// Start playing the sound
soundHandle.Play();

// Check if the sound has been stopped
if (soundHandle.IsStopped)
{
    // The sound has been stopped, take appropriate action
    // For example, restart the sound
    soundHandle.Play();
}