Andrew Griffin wrote:

> 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!

That script is based on a portion we've used in a commercial product without
any problems.  My guess is that something is going wrong at the stage when
you start playing the MIDI.  Unfortunately, I don't have the complete script
to hand right now.

If you can't solve it, you could switch to using the 2.3B1 release.  That
has a "player" object that plays back Quicktime movies (you can easily
convert your MIDI to QT).

Regards,

Kevin

> --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.

Reply via email to