Sound.IsPlaying

From Xojo Documentation

Method

Sound.IsPlaying() As Boolean

Supported for all project types and targets.

Returns True if the sound is playing.

Example

This example stops a sound that was played using PlayLooping. It checks to see if the sound is still playing.

If chimes.IsPlaying Then
chimes.Stop
End If