mbed tokyotech

Dependencies:   C12832 EthernetInterface HTTPClient USBDevice mbed-rtos mbed Speaker

Revision:
2:d26f6e124f1a
Parent:
1:bc8574ad00b3
Child:
3:6d2b9fcb8fa8
--- a/main.cpp	Thu Feb 04 07:32:42 2016 +0000
+++ b/main.cpp	Thu Feb 04 07:49:35 2016 +0000
@@ -33,7 +33,7 @@
 //Variables for audio streaming
 
 // USBAudio
-USBAudio audio(FREQ, NB_CHA, 8000, 1, 0x7180, 0x7500);
+//USBAudio audio(FREQ, NB_CHA, 8000, 1, 0x7180, 0x7500);
 
 
 
@@ -210,12 +210,11 @@
                 else if(hitE){
 
                     gameOver = true;
-                    break; 
+                   // break; 
                        
                 }
                 Thread::wait(50); // Used to control the speed of the game
             }
-            Thread::wait(1000);
         }
     }
 }
@@ -294,7 +293,7 @@
 }
 
 // Function executed each 1/FREQ s
-void tic_handler() {
+/*void tic_handler() {
     float speaker_value;
 
     if (available) {
@@ -324,7 +323,7 @@
 
     // Send value to the speaker
     speaker.write_u16((uint16_t)speaker_value);
-}
+}*/
 
 int main()
 {