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

Post Reply  Post Oekaki 
 

Posted By Message

Jon C-B

I create vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
9th September, 2008 at 02:18:42 -

After the Midi song I've put into my game ends and loops, it freezes for about a second. How can I stop this???

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
9th September, 2008 at 03:14:52 -

I could be wrong, but I beleive the DiretShow object solves this? I'm really not sure which object it is for certain, but one of them deffinatly solved the problem for me.

Edit: Nope, it's deffinatly not DirectShow... Prehaps someone else knows what the object/extension is...?

Image Edited by the Author.

 
Image

Tell 'em Babs is 'ere...

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
9th September, 2008 at 18:39:07 -

You can't Jon. This is the time it takes to reload the midi I believe. It happens to me all the time with MMF1.5. I've just learned to get used to it, but maybe MMF2 solves this?

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Yami



Registered
  23/12/2003
Points
  608
10th September, 2008 at 00:13:11 -

Solve it, that it does...

 
Image

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
10th September, 2008 at 00:46:26 -

Yeah I've deffinatly got it looping perfectly before, just it was about a year ago now and I never really look into the new objects with MMF2... Sorry I can't help too much :/

 
Image

Tell 'em Babs is 'ere...

jpSoul



Registered
  25/10/2003
Points
  1714
10th September, 2008 at 08:03:39 -

to solve this problem, you have to use the MCI object.
at the start of the frame, you send a command to open and play the file, and you add a loop that always check the current position of the song. when the position = the total duration, you send another "play" command...

with this, you just have a freeze time at the start of the frame, but not at each song loop... you can if you want load all midis at the start of your game to have 0 latency on the other frames

see the article about the MCI object on the daily click

Image Edited by the Author.

 
n/a
   

Post Reply



 



Advertisement

Worth A Click