This sample will play a ".wav" file of the USB root folder. Only RIFF format, 48kHz, 16bit, 2ch.

Dependencies:   USBHostDac USBHost_custom_Addiso

Fork of USBHostDac_example by GR-PEACH_producer_meeting

Isochronous transfer sample for GR-PEACH. This sample will play a ".wav" file of the USB root folder. Only RIFF format, 48kHz, 16bit, 2ch.

/media/uploads/dkato/usbdacsample.png
The default setting of serial communication (baud rate etc.) in mbed is shown the following link.
Please refer to the link and change the settings of your PC terminal software.
The default value of baud rate in mbed is 9600, and this application uses baud rate 9600.
https://developer.mbed.org/teams/Renesas/wiki/GR-PEACH-Getting-Started#install-the-usb-serial-communication

Files at this revision

API Documentation at this revision

Comitter:
dkato
Date:
Fri Jun 26 08:00:14 2015 +0000
Parent:
1:82fe51d45902
Child:
3:ed025cdb164d
Commit message:
modify buffer number

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Jun 26 07:40:06 2015 +0000
+++ b/main.cpp	Fri Jun 26 08:00:14 2015 +0000
@@ -76,7 +76,7 @@
                             fp = NULL;
                         } else if ((wav_file.GetChannel() != 2)
                                 || (wav_file.GetBlockSize() != 16)
-                                || (wav_file.GetSamplingRate() != 48000)) {
+                                || (wav_file.GetSamplingRate() != 44100)) {
                             fclose(fp);
                             fp = NULL;
                         } else {