Add mmelody_active_p

This commit is contained in:
Michael Hayes
2011-08-31 02:54:28 +00:00
parent 97712ead60
commit 0373ac2a1d
3 changed files with 21 additions and 1 deletions
+6 -1
View File
@@ -100,7 +100,12 @@ static void button_task (__unused__ void *data)
button_update ();
if (button_push_event_p (BUTTON1))
mmelody_play (melody, tune1);
{
if (mmelody_active_p (melody))
mmelody_play (melody, 0);
else
mmelody_play (melody, tune1);
}
}