Hirotaka Yoneda / beep_sound

Dependents:   kiokuryoku_game escapeFromYou junirobo_sample001 ROBOX_Sample_IRcon ... more

Files at this revision

API Documentation at this revision

Comitter:
RBH
Date:
Sun Oct 09 04:13:14 2016 +0000
Parent:
10:24155220eeda
Child:
12:f2b80b003d6d
Commit message:
stop?empity()?????

Changed in this revision

beep_sound.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/beep_sound.cpp	Sat Oct 08 19:28:44 2016 +0000
+++ b/beep_sound.cpp	Sun Oct 09 04:13:14 2016 +0000
@@ -20,7 +20,9 @@
 void beep_sound::stop(){
     m_pwm->write(0.0f);
     // キューが空でなければ次の音へ
-    if(otoQue.front().time_s != -1){
+    if(otoQue.empity() == true){
+        playting = false;
+    }else if(otoQue.front().time_s != -1){
         playing = true;
         beep_sound::playContinue();
     }else if(otoQue.front().time_s == -1){