The Daily Click ::. Forums ::. Klik Coding Help ::. ModFX 3 crashing and Sound Object woes
 

Post Reply  Post Oekaki 
 

Posted By Message

Golds



Registered
  01/05/2007
Points
  107
4th May, 2007 at 23:09:21 -

I've been using the ModFX Object extension to play .mod files, and it was working fine until yesterday, when my game would start crashing randomly (Trying to read/write to bad memory). I narrowed the problem down to my ModFX Object. I believe I'm using it correctly, so why would it be crashing? Has anyone had experience with this?

So, I tried using the built-in Sound Object to play my .mod music files, but I have the problem that the it plays my .mod files too quietly, and I can't figure out how to make them play louder. Additionally, is there no way to play sound/music with the Sound object across frames?

Image Edited by the Author.

 
n/a

jpSoul



Registered
  25/10/2003
Points
  1714
9th May, 2007 at 04:03:20 -

with the built-in sound object you have just to check an option in the game's properties (don't stop samples between levels or something like that).
to play mods louder, open the mod with modplug tracker and adjust the global volume of the music

 
n/a

nim



Registered
  17/05/2002
Points
  7233
9th May, 2007 at 07:07:31 -

With ModFX3, you need to check if the song has completely loaded into memory before playing it. This is why you get random crashes; sometimes it fully loads, sometimes it doesn't.

Try this:

start of frame >> load "song" in cache 1
when "song" in cache 1 has loaded >> play "song"

 
//
   

Post Reply



 



Advertisement

Worth A Click