I am looking for a function which does this:
bool mmEffectFinished( mm_word sample_ID );
How to tell if sound effect is currently playing?
Moderator: eKid
Re: How to tell if sound effect is currently playing?
So, have you had any luck finding such function?
Re: How to tell if sound effect is currently playing?
Nope. Without using a custom build of maxmod I don't think it is possible. I'm surprised MaxMod is missing such basic functionality when it is being pushed as the sound library to use for DS and GBA homebrew.Izhido wrote:So, have you had any luck finding such function?
Re: How to tell if sound effect is currently playing?
what about modifying it? It shouldn't be too hard...
edit: in the source code, there's this
which seems to me to receive the handler number in r0 and output the channel number on r3... so you just need to write a small wrapper to call this and check if the resulting value is !=-1 (invalid) ...
edit: in the source code, there's this
Code: Select all
mme_get_channel_index
Who is online
Users browsing this forum: No registered users and 0 guests