Difference between revisions of "Legacy:Sound/isPlaying"

From Spherical
Jump to: navigation, search
(Created sound.isPlaying page)
(No difference)

Revision as of 21:52, 20 May 2013

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