PlayMusicQueued (int music_number)
Queues up MUSIC_NUMBER to be played after the current background music finishes.
This command allows you to build up a playlist of music to be played, one after another. You
can call this up to 10 times, to add up to 10 tracks to the playlist.
NOTE: This command uses the current setting of SetMusicRepeat to determine whether
the queued track will repeat or not. You can only queue one track while SetMusicRepeat
is on (since it will never finish, any further queued tracks would never play).
NOTE: The playlist is cancelled if you call PlayMusic (or use any other Play Music
commands such as the Play Music On Room Load feature), or if you call StopMusic.
Example:
SetMusicRepeat(0);
PlayMusic(2);
PlayMusicQueued(3);
SetMusicRepeat(1);
PlayMusicQueued(4);
will play music 2, and then play music 3 after it finishes. After that, music 4 will play
and loop continuously.
See Also: PlayMusic, SetMusicRepeat,
StopMusic
|