On Tuesday, Oct 19 1999, Andrew Griffin wrote:
> I am trying to have midi music loop or just stop and load another midi
> file using MCI sendstring. I am able to play the music, but I'm unable
> to detect if the midi has stopped or loop the midi. I have tried to
> check the midi using the status command with the mci sendstring, but it
> responds with: "missing parameter". So, I just need to know if there
> is a way and how. If you can't loop the midi, then how can I check if
> it is stopped?
Here is a copy of a message I posted to the list a few weeks back:
------------------
As far as I know, the only way to do this is to poll the MCISendString
function for the status of the MIDI file thats being played.
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
------------------
Regards,
Kevin
> Thanks!
>
> --Andrew
Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.