Took me a while to find this one as my debugger is messed up (won't highlight code and running commented lines sometimes
). But here it is. It seems that the program is either caught up in the loop or freezing at the loop. If you uncomment the sync command (inside the while loop) or turn syncing off all-together it works. It uses a sound file that comes with DBP. Almost like the while loop or the sound playing() needs the sync to update it.
sync on
load sound "C:\Program Files\Dark Basic Software\Dark Basic Professional\Media\Sounds\Military\Prop dive 1.wav", 6
do
cls
set cursor 5,5
print "Press mouse 1 to play sound at end it should say done"
if mouseclick() = 1
play sound 6 : LeftMouseButton = 1
while sound playing(6) = 1
`sync
endwhile
delete sound 6 : exit
endif
sync
loop
print "Done Press any key to exit"
sync
wait key
end
[edit] This may bot be a bug but new functionality. Whichever the case, people need to know as it works in DBP 5.8
[edit2] I see the forum still deletes the "\" characters upon editing code