For some reason (my ignorance I'm sure) My original message didn't come out as planned.
I am wanting to allow the user to play their own mp3 files in a game I am writing. I have found the exact cause of my problems, but I've searched the boards and haven't found very much.
If I run all of my code (which isn't practical) before the sync statement, it all runs fine. But if any portion of the code resides after the sync statement, it returns a 1 for music playing() even after it has stopped.
I've also tried to use music exist() which works in a test for me, without the sync statement but has the same problem as music playing()
I am trying, again, to include the real code example, without erasing all of my text, like I did last time.
If, I keep the "while music playing()" set of code above the sync it works, below the sync, it fails to load the second song.
here (hopefully) is the code:
gosub _initMusic
print "numberOfSongs =" +str$(numberOfSongs)
for h = 1 to numberOfSongs
print song$(h)
next
_over:
gosub _playMusic
print "thisSong"+str$(thisSong)
while music playing(1) = 1
rem do nothing
endwhile
sync on : sync rate 0
goto _over