The Daily Click ::. Forums ::. Klik Coding Help ::. how to get the MCI Object to loop a midi?
 

Post Reply  Post Oekaki 
 

Posted By Message

Partack



Registered
  16/05/2002
Points
  91
17th August, 2003 at 20:22:54 -

i'm using the old method of using mci object to play midi's over frames but i need the midi's to loop. anyone know how to do this? i tried a few commands like repeat and stuff but it doesn't work. i tried some crazy stuff with counters and the status command but when the midi finnishes, the game lags like theres no tomrrow (and doesnt loop..)

please help... thanks

--PtK

 
n/a

Partack



Registered
  16/05/2002
Points
  91
17th August, 2003 at 20:25:31 -

oh, forgot to say, i'm using TGF

Edit: oops.. i didnt notice daily click added the edit button to the forum my bad

Image Edited by the Author.

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
18th August, 2003 at 01:29:42 -

Use DMC2.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Partack



Registered
  16/05/2002
Points
  91
18th August, 2003 at 02:03:43 -

to play a midi file? o_0 wha?

by the way, nice avatar

Image Edited by the Author.

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
18th August, 2003 at 04:24:17 -

Ty - At least someone thinks my avatar is good (@ danjo)

Ok should of explained better, DMC2 is an extension that allows you to play all sorts of sound file types. I used it in both of my music dancers, and you can find exmaples and tuts for it scattered all over TDC and CT forums; just search for them .

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Partack



Registered
  16/05/2002
Points
  91
18th August, 2003 at 12:27:48 -

um.. i knwo hat DMC2 is and what it does but i thaught it only playd

MOD, MP3 or .WAV files? i'll check it out though.. thnx..

 
n/a

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
19th August, 2003 at 03:00:20 -

+ Start of Frame
- Status Sound Length("MCI")
- Set Counter1 to Return Value("MCI")

+ Always
- Status Sound Position("MCI")
- Set Counter2 to Return Value("MCI")

+ Counter1 = Counter2
- Play <music> From 0

Commandant

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
19th August, 2003 at 05:03:52 -

SC - Or you could just set loop to -1.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

ShadowCaster

Possibly Insane

Registered
  02/01/2002
Points
  2203
19th August, 2003 at 06:10:08 -

With the MCI object? I'm pretty sure that isnt available with older operating systems, but it might be with XP.

I dont think I ever tried it, I just remember reading it somewhere I think.

Commandant

 
"Now I guess we're... 'Path-E-Tech Management'" -Dilbert
   

Post Reply



 



Advertisement

Worth A Click