The Daily Click ::. Forums ::. Klik Coding Help ::. MP3's to TGF with MCI object.
 

Post Reply  Post Oekaki 
 

Posted By Message

EleXor



Registered
  21/01/2003
Points
  269
7th May, 2005 at 14:43:10 -

Some guy posted this years ago here which worked for me, but not anymore?
Code:
Start of level: Mci objct:
send "stop music"
send "open %drive%%dir%tetris.mp3 alias music" <--- tetris.mp3 the filename
send "play music"
End of level:
send "stop music"
send "close music"

When I run it nothing happens. I hope you could help me.
Thanks.

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
7th May, 2005 at 18:14:11 -

EleXor says: To what?

 
n/a

Tigerworks

Klik Legend

Registered
  15/01/2002
Points
  3882
7th May, 2005 at 20:19:55 -

You need to set the device name for whichever thingy plays MP3s. For midis its "sequencer", but unhelpfully I can't remember what it is for MP3s. Sorry

Besides MCI is an obsolete technology, I wouldn't be suprised if XP has ditched support for it. Directshow on MMF 1.5 is the way to go.

 
- Tigerworks

EleXor



Registered
  21/01/2003
Points
  269
8th May, 2005 at 02:20:53 -

Will %drive%%dir% actually work? Shouldn't you change that?

Actually it did last time when this worked.

EleXor says: To what?

I don't understand you. I have been watching your posting for some time. You are just some newcomer who tries to act older. Thanks.

 
n/a

en kerro



Registered
  21/10/2004
Points
  578
8th May, 2005 at 03:57:15 -

It's easier to use DMC2 object tahn MCI
(I have both of them)

 
Current Projects:
The Artillerys 10%
Forgotten Legends 8%
Earth Defender 20%

EleXor



Registered
  21/01/2003
Points
  269
8th May, 2005 at 06:39:33 -

You're not the only one that has. My dmc2 doesn't work with MMF, it will crash.
Porkkana

 
n/a

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
8th May, 2005 at 07:51:06 -

The DMC2 object is fairly pedantic about how you use it, and is prone to crashing if things aren't done its way. Where does it crash?

 
http://www.davidn.co.nr - Games, music, living in America

EleXor



Registered
  21/01/2003
Points
  269
8th May, 2005 at 10:26:35 -

Oh it didn't crash.
What happens is, that it doesn't show in extensions list. When I choose to take from file, I see dmc2.cox and when I select it, will let me select from five selections;
Active, backdrop, counter, lives or videopro. I don't know if it's right or not, I'd like to hear some intructions. Thanks.

 
n/a

EleXor



Registered
  21/01/2003
Points
  269
9th May, 2005 at 11:59:08 -

Well would somebody like to share me some information, eh?

 
n/a

en kerro



Registered
  21/10/2004
Points
  578
12th May, 2005 at 01:10:32 -

I had same problem, EleXor. Then I put bass.dll into Hard drive (usually C:\)\WINDOWS\System32 folder. Then that problem was gone. After that, I have had no problems with DMC2.

 
Current Projects:
The Artillerys 10%
Forgotten Legends 8%
Earth Defender 20%

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
12th May, 2005 at 02:01:18 -

Bass.dll has to be either in your system folder or in the same directory as the source file you're working on. I prefer the latter, because it reminds me to include it in the final zip.

 
http://www.klikscene.com
   

Post Reply



 



Advertisement

Worth A Click