Sound update

Dependencies:   4DGL-uLCD-SE Physac-MBED PinDetect SDFileSystem mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
jaybalar
Date:
Fri Dec 09 21:06:11 2022 +0000
Parent:
29:431e5788a313
Child:
31:b08cc3c126d6
Commit message:
update

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Dec 09 20:44:32 2022 +0000
+++ b/main.cpp	Fri Dec 09 21:06:11 2022 +0000
@@ -70,15 +70,15 @@
         speaker.write_u16(tetris[i]);
         i++;
     }
-    else if (game2) {
+    if (game2) {
         speaker.write_u16(air_hockey[j]);
         j++;
     }
-    else {
+    if (!game1 && !game2) {
         speaker.write_u16(mii_menu[k]);
         k++;
     }
-    if (k>= NUM_ELEMENTS) {
+    if (k>= 71904) {
         k = 0;
     }
     if (i>= 72584) {