Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Mr_Threepwood on Sat 19/08/2006 21:24:54

Title: Midi troubles
Post by: Mr_Threepwood on Sat 19/08/2006 21:24:54
Ok I've run into a strange problem.Ã,  I start the game and play a midi file, that works out alright.

Next I change the midi file playing for a certain event.

After that I chance the midi file playing back to the original one.Ã,  However rather then playing normally this midi file is all screwed up and sounds very strange.

I tried it with a different second midi file and as far as I can tell it works normally.Ã,  Any ideas on how I can make it so that it will sound right all the time?

Is there a way to reset the midi synthesizer or something?

Edit:  Just to be sure it wasn't my computer I tried it on my other computer, same problem.  This problem just seems so strange.
Title: Re: Midi troubles
Post by: Gilbert on Mon 21/08/2006 04:56:30
I think it's that second MIDI file not resetting the synthesis after playing, which caused the problem, you can't reset the synthesis using AGS functions at the moment as far as I know. You may need to edit that MIDI file to ensure it won't screw things up after playing.
Title: Re: Midi troubles
Post by: strazer on Mon 21/08/2006 09:24:54
If that's indeed the problem, try playing modgeulator's reset4.mid (http://www.2dadventure.com/ags/reset4.mid) from this thread (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=12691) after the special midi.
Title: Re: Midi troubles
Post by: Gilbert on Mon 21/08/2006 09:27:49
CJ said some of the problems were fixed then though, in that case it probebly means there're some more stuff needed to be reset by the engine.