Josh Davy / Mbed OS Flip_OS_5

Dependencies:   el17jd

Revision:
6:2ca1516ec1e2
Parent:
5:b9cf407bcc63
Child:
8:21b6d4dbce44
--- a/Music/Music.cpp	Sat Apr 06 14:42:34 2019 +0000
+++ b/Music/Music.cpp	Wed Apr 10 11:03:07 2019 +0000
@@ -17,7 +17,7 @@
     
     _data = data;
     _length = length;
-    speaker.period(0.00001); // Has to << then 1/sample rate
+    speaker.period(0.00003); // Has to << then 1/sample rate
     speaker.write(0); // until music played stay silent
     _index = 0;
 }
@@ -33,7 +33,7 @@
         
         _index++;
     } else {
-        printf("%i",_index);    
+        _index = 0;    
     }
         
 }
\ No newline at end of file