Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hello guys,
I am encountering a problem here,I had imported the program wave_player to my compiler but when I send to mbed trying to play the wav file,I couldn't play the audio, can anyone help me?
This is my programming
AnalogOut DACout(p18);
wave_player waver(&DACout);
int main() { FILE *wave_file;
printf("\n\n\nHello, wave world!\n");
wave_file=fopen("/local/Hello.wav","r");
waver.play(wave_file);
fclose(wave_file);
}
And this is my connection, just for your info, i connect to p18
Hope you guys can help me