Sound.IsPlaying

From Xojo Documentation

Revision as of 14:37, 8 August 2017 by PLefebvre (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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