Everything was working fine in Metacard v2.2 but when i changed
the project over to v2.3 now after a few seconds of playing the
midi stops.. Does anyone know why this is?

To use it i just send "MidiPlay name.mid"

The project does work fine in 2.2, so i am sure there are no
bugs in the script!?

Midi Script Used
------------------

on MidiPlay var
  put var into MidName
  MidiPlay2
  put MidName into OldMidName
  if MidName is empty then
  else
    put ("open " & quote & GameLocation & "data/" & var & quote) into MidName
    put MidName into OldMidName
    
    put "open" into word 1 of MidName
    put mciSendString(MidName) into returnValue
    put "play" into word 1 of MidName
    put mciSendString(MidName) into returnValue
  end if
end MidiPlay

on MidiPlay2
  if OldMidName is empty then
  else
    put "Stop" into word 1 of OldMidName
    put mciSendString(OldMidName) into returnValue
    put "Close" into word 1 of OldMidName
    put mciSendString(OldMidName) into returnValue
  end if
end MidiPlay2

-------------
End Script

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to