ID:141538
 
Code:
mob/Owner_verbs

verb
Owner_Play_Music()
set category = "GM"
if(!playing)
playing = 1
for(var/a in playlist)
if(playing == 1)
world<<sound(a,0,1)
else
alert("There is music currently playing.")
Owner_Stop_Music()
set category = "GM"
world<<sound()
playing = 0
Owner_Add_To_Playlist(music as file)
set category = "GM"
playlist += music

mob/Login()
// These commands are going to be set to admin only.
src.verbs += /mob/Owner_verbs/verb/Owner_Play_Music
src.verbs += /mob/Owner_verbs/verb/Owner_Add_To_Playlist
src.verbs += /mob/Owner_verbs/verb/Owner_Stop_Music

mob
var/list/playlist = list()
var/playing = 0


Problem description:

Im trying to play each sound one after another...When i click play...they all play at the same time. I put the sound proc's wait to 1, so it should wait in the queue?
Help please.
You might want to check out the dta_sound library from Android Data.