Any callbacks for sound?
by Eyal Erez · in Torque Game Builder · 12/06/2007 (6:30 pm) · 0 replies
I have a library of music songs I'm using in my game. I've made a MusicManager that handles the songs and was wondering if there are any callbacks that will tell you when a sound has reached it's end so I can switch it to the next sound.
Currently I'm using this hack.
function MusicManager::keepPlaying( %this )
{
if (alxIsPlaying($musicHandle)) %this.keepPlaying = %this.schedule(1000,keepPlaying);
else %this.playNextSong();
}
Thanks,
Eyal.
Currently I'm using this hack.
function MusicManager::keepPlaying( %this )
{
if (alxIsPlaying($musicHandle)) %this.keepPlaying = %this.schedule(1000,keepPlaying);
else %this.playNextSong();
}
Thanks,
Eyal.