Big Mouth Billy Bass automation library

Dependents:   BillyBass_with_SD

Revision:
7:dba9221acf48
Parent:
6:ea8136eb6976
--- a/player.hpp	Thu Jun 20 03:04:36 2013 +0000
+++ b/player.hpp	Thu Jun 20 04:10:22 2013 +0000
@@ -149,9 +149,9 @@
         if (!startSong(_song)) return;
         Action* lastAction = song->getActions() + song->getNumActions();
         while (!isDone()) {
-            while (nextAction < lastAction && nextAction->actIfPast(timeInSong)) {
+            while (nextAction < lastAction && nextAction->isPast(timeInSong)) {
+                nextAction->act();
                 fputc(nextAction->code, stderr);
-                // fprintf(stderr, "%c", nextAction->code);
                 actionsDone++;
                 nextAction++;
             }