<b>Question:</b> "Hi this might be a bit annoying and yes I did search before post but it was all jiberish and hard to understand but how would I be able to make a playlist while using Saudio I don't know how to make a playlist by itself too. "
<b>Answer:</b> As far as I know Saudio doesn't just create playlists by itself. It do have functions though, which enables the creation of a playlist. I would suggest you to use a simple datastructure or just an array. So you go like this:
playlist[0] = sound0;
playlist[1] = sound1;
playlist[2] = sound2;
playlist[3] = sound3;
playlist[4] = sound4;
In step event I would use the array above to play the correct song (I'm using GML since I do not know the Saudio commands, but I am sure there are corresponding):
if !(sound_isplaying(all)) {
song_i +=1;
sound_play(playlist[song_i]);
}
Then of course, I would also check when the playlist has reached the end and such. I would also have intialized song_i in the create event, along with the array.
I hoped this helped you out, at least a little bit.
.
Users logged in:
Comments
Loading comments...