The Daily Click ::. Forums ::. Klik Coding Help ::. Typical DMC2 Questions. Can't make it work.
 

Post Reply  Post Oekaki 
 

Posted By Message

Pixel Eater



Registered
  19/04/2006
Points
  9
19th April, 2006 at 20:55:53 -

I'm pretty new to this.

I want MP3's in my game. No matter what, ModFX freezes it every time I end the application (alt F4 and 'end application') or change frames.

I downloaded DMC2 from various sources, and couldn't make any of them list in MMF 1.5 (w/ bonus packs.) Searching this forum didn't quite clear things up. dmc2.cox is in my extensions folder. I placed a bass.dll copied from this "Entrance Gate 2" source into Windows, System, and System 32 to no avail. Tried other ones too. I still can't open the EG2 source because DMC2 won't load, but more importantly, can't put music in my game. Izzy's site is clearly no more. Why can't I make this work?

Also if you could explain how I 'initialize' and 'terminate' bass, that would probably help in the future.

Everybody mentions DirectShow, but I don't see how it ties in with MMF. I downloaded this zip and it has 4 files, like DirectShow.bas.

 
Mmm yummy pixels.

David Newton (DavidN)

Invisible

Registered
  27/10/2002
Points
  8322

Honored Admin Alumnus
19th April, 2006 at 22:19:32 -

Try putting bass.dll in the same directory as the .cca you're working from as well.

Initialize BASS at the start of each frame you need to play music on, and Terminate BASS at the end of frame and end of application - this will prevent crashing.

DMC2 works on the principle of pre-loading a music file, then playing it - therefore:

Start of Frame:
> Initialize BASS
> OpenStream ("./musicfile.mp3")
> PlayStream

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

Pixel Eater



Registered
  19/04/2006
Points
  9
19th April, 2006 at 23:12:12 -

I guess you apply those events to a DMC2 object? As it stands, MMF has no idea DMC2 exists.

I tried same dir also.

 
Mmm yummy pixels.

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
19th April, 2006 at 23:25:56 -

I think you need to put the .cox in the runtime folder as well.

 
Craps, I'm an old man!

Pixel Eater



Registered
  19/04/2006
Points
  9
19th April, 2006 at 23:37:23 -

That won't get it listed in MMF.

Speaking of which, what will it be labeled? (that's not to say I haven't been down the list several times)

What advantages does DCM2 have over DirectShow?

 
Mmm yummy pixels.
   

Post Reply



 



Advertisement

Worth A Click