Why don't you delay with a counter after you call PlayMusic.
like this:
If MusicDelay=0 And ChannelPlaying(MusicChannel)=0 Then
MusicChannel=PlayMusic("Music.mp3")
MusicDelay=100
end if
if MusicDelay>0 then MusicDelay=MusicDelay-1
I do not know but for me it seemed that while the music was reloading, ChannelPlaying equalled 0
like this:
If MusicDelay=0 And ChannelPlaying(MusicChannel)=0 Then
MusicChannel=PlayMusic("Music.mp3")
MusicDelay=100
end if
if MusicDelay>0 then MusicDelay=MusicDelay-1
I do not know but for me it seemed that while the music was reloading, ChannelPlaying equalled 0