ChannelPlaying/Playmusic and Midi

Blitz3D Forums/Blitz3D Programming/ChannelPlaying/Playmusic and Midi

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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