Page 1 of 1

SFX stop playing, Mod refuses to pause/stop/unload correctly

Posted: Fri Jul 24, 2009 1:00 am
by SwedishFish
Hi,

Im having a slight issue with Maxmod where after 120-126 plays of a sound effect maxmod goes a little crazy.
Mods will not stop or pause and new sound effects cannot be played.

Honestly I hope its a beginners mistake.

Thanks for your time

-SwedishFish

linked my source demo http://www.mediafire.com/?sharekey=76d9 ... b9a8902bda

Re: SFX stop playing, Mod refuses to pause/stop/unload correctly

Posted: Fri Jul 24, 2009 6:45 am
by eKid
Hmm, interesting problem... I believe what is happening is that the fifo system is sometimes processing the mmEffectVolume before the actual mmEffect (and causing ??? behavior)... since they use different methods of communication. I've made a patch to make the system just use one method of communication (maybe slightly less efficient, but it's stable). It's in the SVN now.

Re: SFX stop playing, Mod refuses to pause/stop/unload correctly

Posted: Fri Jul 24, 2009 5:09 pm
by SwedishFish
eKid wrote:Hmm, interesting problem... I believe what is happening is that the fifo system is sometimes processing the mmEffectVolume before the actual mmEffect (and causing ??? behavior)... since they use different methods of communication. I've made a patch to make the system just use one method of communication (maybe slightly less efficient, but it's stable). It's in the SVN now.
Thanks eKid, everything is working correctly now

Re: SFX stop playing, Mod refuses to pause/stop/unload correctly

Posted: Thu Sep 24, 2009 1:45 pm
by sverx
eKid wrote:Hmm, interesting problem... I believe what is happening is that the fifo system is sometimes processing the mmEffectVolume before the actual mmEffect (and causing ??? behavior)... since they use different methods of communication. I've made a patch to make the system just use one method of communication (maybe slightly less efficient, but it's stable). It's in the SVN now.
were you using fifoSendValue32() ? Check this... http://forums.devkitpro.org/viewtopic.php?f=15&t=1510

Re: SFX stop playing, Mod refuses to pause/stop/unload correctly

Posted: Tue Jan 05, 2010 10:47 pm
by jotd
I have downloaded version 1.0.6 of maxmod and replaced the libmm7 and libmm9 of devkitpro 1.5 by the fresh ones (but maybe they were already the newest ones...).

I have the same problem here. On No$GBA everything is working fine, but on the real DS, samples stop playing after a few seconds. The game works fine apart from that but no sound, sob...

Edit: I found what the problem is: I use to play a very short sample for bounces (3/100th of a second). It's enough to break the maxmod lib. I have removed this sample and everything works fine!