A test program for the WavPlayer class, works on the RS Animatronic Lab Board

Dependencies:   FatFileSystem MSCFileSystem WavPlayer mbed

Files at this revision

API Documentation at this revision

Comitter:
p07gbar
Date:
Wed Sep 19 11:03:56 2012 +0000
Child:
1:5ffbf2bca1b5
Commit message:
Working

Changed in this revision

FatFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
MSCFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
WavPlayer.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FatFileSystem.lib	Wed Sep 19 11:03:56 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/igorsk/code/FatFileSystemCpp/#e869ee8f3c3d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MSCFileSystem.lib	Wed Sep 19 11:03:56 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/MSCFileSystem/#dcc326e4d358
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/WavPlayer.lib	Wed Sep 19 11:03:56 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/p07gbar/code/WavPlayer/#3695886f3495
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Sep 19 11:03:56 2012 +0000
@@ -0,0 +1,15 @@
+// This is all set up for the RS Labboard: Just plug a memory stick with a wav file called test.wav on it and have a listen!
+
+#include "mbed.h"
+#include "WavPlayer.h"
+#include "MSCFileSystem.h"
+
+MSCFileSystem msc("msc"); // Mount flash drive under the name "msc"
+WavPlayer player;
+
+int main() {
+    FILE *fp = fopen("/msc/test.wav", "r");  // Open "out.txt" on the local file system for writing
+    player.open(&fp);
+    player.play();
+    fclose(fp);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Sep 19 11:03:56 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc
\ No newline at end of file