Okay, I have tried everything in order to check and see if my playing
MIDI, using the MCISendString command, is done playing.
First, I have used this, but it doesn't work:
on startPlaying
--put your commands to alias the file here and then to play it
send "checkFinished" to me in 5 seconds
end startPlaying
on checkFinished
if mciSendString("status myAudio") is not "stopped" then
send "checkFinished" to me in 5 seconds
exit checkFinished
end if
--its finished, insert script to play it again here
send "checkFinished" to me in 5 seconds
end checkFinished
What happens is the "status myAudio" part returns "MMSYSTEM273 The
specified command is missing a paramter. Please enter one." Now, when
I ran this script I used the "myAudio" alias as well as the alias
"bgmusic", but neither worked (I aliased my music using both names, not
at the same time of course!). I put a "return the result" type script
below the if handler to get the above message. I looked through the
metacard mci stack and even when you click on it's status command it
gives you the same error. I have tried a number of other things, but
still cannot get it to work. What is the parameter that's missing? All
I need to do is check to see if the MIDI is done playing so it can
either loop itself or play another. Has anybody got the above script to
work? If so how?
Thanks for any help, it's driving me nuts and I really need it to work!
--Andrew