The Finished
property of the SoundHandle
class indicates whether the sound has completed playing. It returns a Boolean
value, where true
signifies that the sound has finished playing, and false
means it is still playing or has not started.
The Finished
property of the SoundHandle
class indicates whether the sound has completed playing. It returns a Boolean
value, where true
signifies that the sound has finished playing, and false
means it is still playing or has not started.
Use the Finished
property to check if a sound has completed its playback. This can be useful for triggering events or actions once a sound has finished playing.
// Example of using the Finished property SoundHandle sound = new SoundHandle(); // Check if the sound has finished playing if (sound.Finished) { // Perform an action when the sound is done // For example, start another sound or notify the user StartNextSound(); }