testing

Dependencies:   mbed wave_player SDFileSystem

Committer:
hcharan
Date:
Mon Jun 03 12:06:30 2019 +0000
Revision:
0:64725c30b650
Library issue with sample rates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hcharan 0:64725c30b650 1
hcharan 0:64725c30b650 2 #include "mbed.h"
hcharan 0:64725c30b650 3 #include "SDFileSystem.h"
hcharan 0:64725c30b650 4 #include "wave_player.h"
hcharan 0:64725c30b650 5
hcharan 0:64725c30b650 6
hcharan 0:64725c30b650 7 //SDFileSystem sd(PB_5, PB_04, PB_03, PA_15, "sd"); //SD card
hcharan 0:64725c30b650 8 SDFileSystem sd(PB_15, PB_14, PB_13, PB_12, "TEST");
hcharan 0:64725c30b650 9
hcharan 0:64725c30b650 10 AnalogOut DACout(PA_4);
hcharan 0:64725c30b650 11
hcharan 0:64725c30b650 12 wave_player waver(&DACout);
hcharan 0:64725c30b650 13
hcharan 0:64725c30b650 14 int main()
hcharan 0:64725c30b650 15 {
hcharan 0:64725c30b650 16 FILE *wave_file;
hcharan 0:64725c30b650 17 printf("\n\n\nHello, wave world!\n");
hcharan 0:64725c30b650 18 wave_file=fopen("/TEST/queen.wav","r");
hcharan 0:64725c30b650 19 waver.play(wave_file);
hcharan 0:64725c30b650 20 fclose(wave_file);
hcharan 0:64725c30b650 21 }