The Daily Click ::. Forums ::. Digital Works ::. Problems with midi music
 

Post Reply  Post Oekaki 
 

Posted By Message

Fredrik Ortmon



Registered
  10/03/2006
Points
  219

Game of the Week Winner
21st October, 2009 at 20:42:24 -

Hello people !
I have been inactive with the game producing for a long time and thought it was time to come back !
On the way i encountered a problem that i also had with my last rts gams:
The midi music !

It seems to lag everytime it changes midi track or in the start of a level.
Do you have any idéas?

Screenshot of the game so far Image

 
yo

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
22nd October, 2009 at 00:47:50 -

No sir, it does that to me too and always has. That lag I hear is the time it takes to load the midi's information so it can play it. Unfortunately it also has a lag between loops as well and almost always cuts off the first note of the song from the 2nd loop onward.

If there's a way to somehow preload these things that might help with your intial lag problems.

 
--

"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!

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
22nd October, 2009 at 00:50:24 -

Game looks great. Welcome back!

 

  		
  		

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49667

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
22nd October, 2009 at 04:01:42 -

That's a timeless lovely bug. Takes me back to my roots, back to the knp days.

Yep that midi delay bug has been around since the beginning.

 
n/a

Fredrik Ortmon



Registered
  10/03/2006
Points
  219

Game of the Week Winner
22nd October, 2009 at 12:17:17 -

Oh nothing to do then, after all it is´nt that big of a deal
Thanks for the help !

Always fun to post questions here on this site because you get friendly help instantly

 
yo

Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
22nd October, 2009 at 21:03:35 -

I think the only worthwhile solution is to have your music in a different format (even converting a midi file to MP3 even though that goes against the whole idea of Midi) and using a plugin to play it.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
22nd October, 2009 at 21:17:03 -

It might not be a bad idea to use something like iTunes to convert it to MP3 (Makes it sound better usually) and then use audacity to make it an OGG so you can keep it internal.

 

  		
  		

Fredrik Ortmon



Registered
  10/03/2006
Points
  219

Game of the Week Winner
29th October, 2009 at 14:57:20 -

sounds like a good idea !
I will try it when i get home from my vacation in Thailand
Thanks once again !

 
yo

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
29th October, 2009 at 16:09:16 -

So there isn't an extension that can playback midi with precaching or a buffer or something?

 
.

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
29th October, 2009 at 19:40:56 -

Have you tried the MCI object? I remember it solving all the MIDI problems in TGF1 I think this can play your midis without lagging your game.

 
This space is for rent

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
29th October, 2009 at 22:39:46 -

I think direct show can play midis. Testing...

 
-

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
29th October, 2009 at 22:48:09 -

Yep direct show loops midi's with out any hiccups.

 
-

nim



Registered
  17/05/2002
Points
  7234
29th October, 2009 at 23:35:29 -


Originally Posted by Ricky Garces
Yep direct show loops midi's with out any hiccups.



That's very very useful, Ricky - thanks! I know that hardly anyone uses MIDI music anymore but I like to use it for my competition games.

Are there any disadvantages to using Direct Show? I've never used it.

 
//

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
29th October, 2009 at 23:50:12 -

I don't know how to make direct show play over frame, or if it even can.

 
-

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
30th October, 2009 at 01:29:59 -

Does directshow make the midi internal? I'm probably alone in this, but I hate having external files thrown willy nilly everywhere.

 

  		
  		
   

Post Reply



 



Advertisement

Worth A Click