Hey guys,
this seems to be a bug that has been around for ages, although surprisingly few people seem to bother. It was mentioned in these threads:
http://forum.thegamecreators.com/?m=forum_view&t=172538&b=1
http://forum.thegamecreators.com/?m=forum_view&t=194806&b=1
http://forum.thegamecreators.com/?m=forum_view&t=166898&b=15
So it seems to date back to 2010 if not earlier. I'm using DBP 7.61 and still got the same problem:
the pause music command simply crashes my application.
Apparently converting the music file to
wav and using
pause sound should work, but this would mean ~30mb of additional data for each of my music tracks. Isn't there a better solution?
In case anybody wants to try it out, just use the DBP help code for
pause music:
cls
load music "any music file.mp3",1
Play music 1
print "is music paused "+str$(music paused(1))
wait 1000*8
pause music 1
print "is music paused "+str$(music paused(1))
do
cls rnd(0xFFFFFF) //<- added by me, just to demonstrate that the program actually crashes and this line will never be executed
loop
stop music 1
end
As soon as the music stops, the program just freezes and doesn't react to anything anymore. Does this happen to everybody? Or is there a version of DBP where the bug has been fixed?