The Daily Click ::. Forums ::. Klik Coding Help ::. Music
 

Post Reply  Post Oekaki 
 

Posted By Message

Santa



Registered
  19/05/2003
Points
  644
13th August, 2003 at 19:21:49 -

When my game changes track that its playing the game lags whilst the midi is loaded in. Is their a way to stop this happening. Would one of the Music objects thats around fix this. If so which one.

ThanXs

SAnTA

 
SAnTA - www.atnas.com

-------------------
www.create-games.com/download.asp?id=2918

AsparagusTrevor

Mine's a pint of the black stuff

Registered
  20/08/2002
Points
  2364

Game of the Week WinnerHas Donated, Thank You!VIP MemberEvil kliker
13th August, 2003 at 19:25:53 -

There isn't any way to stop this happening, you'd think by MMF they would have fixed that. Apparently, the latest MMF patch is supposed to stop this, but I haven't noticed any difference. So the answer would be no.

 
Image

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
13th August, 2003 at 19:44:16 -

this isn't a bug. It's because the windows media control loads music directly from files instead of caching them somewhere.

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Santa



Registered
  19/05/2003
Points
  644
14th August, 2003 at 11:59:45 -

does this happen with all music formats or just midi?

Kris mentions its because of the windows media control is their a way to use a different control?

Failing that this is a very very sloppy solution but is their a easy way to join several midi files into one file?

 
SAnTA - www.atnas.com

-------------------
www.create-games.com/download.asp?id=2918

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2723
14th August, 2003 at 13:34:43 -

You can try to do the caching process yourself.
Although i don't know if that's possible.
Because most data is wiped when going to the next frame.

 
Image jenswa.neocities.org

Santa



Registered
  19/05/2003
Points
  644
14th August, 2003 at 15:08:16 -

The process was running more than once, I was doin ga test by loading one midi in at the start of the frame and then using a key press to change the midi durin the game. I made it run once, it helped but the game still lagged.

The active x object wouldnt work, If i use it in a v-basic app it works fine. If i run it in mmf then i dont seem to have options to play tracks, it seems to be all about streeming media etc.... (unless im misssing somet).

I tryed loading 2 midis in at the start of the frame, then switching between them but it still lagged, i guess they arent caching themselves.

Jenswa says
"You can try to do the caching process yourself. Although i don't know if that's possible. Because most data is wiped when going to the next frame. i might be able to do the caching process myself"
I dont think thats possible but my game runs in pretty much one frame so if it is posssible maybe it would work within my game.



 
SAnTA - www.atnas.com

-------------------
www.create-games.com/download.asp?id=2918

Santa



Registered
  19/05/2003
Points
  644
15th August, 2003 at 17:27:27 -

putting the comand to play the midi file in a fast loop just about halfs the time the game lags for, its not only about half a second, but its stilltoo much anyone any ideas at all?????

 
SAnTA - www.atnas.com

-------------------
www.create-games.com/download.asp?id=2918
   

Post Reply



 



Advertisement

Worth A Click