View unanswered posts | View active topics It is currently Thu Aug 16, 2018 6:48 am



Reply to topic  [ 4 posts ] 
 How to tell if sound effect is currently playing? 
Author Message

Joined: Wed Aug 14, 2013 8:28 pm
Posts: 63
I am looking for a function which does this:

bool mmEffectFinished( mm_word sample_ID );


Thu May 22, 2014 7:42 pm
Profile
User avatar

Joined: Fri Oct 19, 2007 10:57 pm
Posts: 107
Location: Costa Rica
So, have you had any luck finding such function? :)


Tue Oct 28, 2014 9:14 pm
Profile WWW

Joined: Wed Aug 14, 2013 8:28 pm
Posts: 63
Izhido wrote:
So, have you had any luck finding such function? :)

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.


Thu Oct 30, 2014 11:07 pm
Profile

Joined: Wed Aug 12, 2009 2:56 pm
Posts: 91
Location: github.com/sverx
what about modifying it? It shouldn't be too hard...

edit: in the source code, there's this
Code:
mme_get_channel_index

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) ...


Fri Oct 31, 2014 4:40 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads