Legacy:Sound/isPlaying

From Spherical
< Legacy:Sound
Revision as of 22:40, 30 May 2013 by Apollolux (talk | contribs) (navboxed)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Play a loaded sound.

Usage

sound.isPlaying();


  • sound Sphere Sound object. The sound to get info from.

Examples

Waiting for a sound to finish:

var font = GetSystemFont();
var my_music = LoadSound("your_sound.ogg");

my_music.play(false);

while (my_music.isPlaying())
{
    font.drawText(0, 0, "I'm playing!");
    FlipScreen();
}

See also


API:Sound/navbox