music mixer code

Dependencies:   mbed wave_player mbed-rtos SimpleRGB 4DGL-uLCD-SE PinDetect

Revision:
10:5f5e199e1b9c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sound.h	Mon Dec 09 16:43:04 2019 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "rtos.h"
+#include "SDFileSystem.h"
+#include "wave_player.h"
+#include <string>
+
+using namespace std;
+
+
+//debugging
+
+//string current;
+
+void sound(string wavefilename) {
+        FILE *wave_file;
+  //      wave_file=fopen("/sd/sunflower_clip.wav","r");
+   //     current = "/sd/" + 
+        wave_file=fopen(wavefilename,"r");
+        waver.play(wave_file);
+        fclose(wave_file);
+}
\ No newline at end of file