bool AudioPlaySdWav::play(const char *filename) | bool AudioPlaySdWav::play(const char *filename) | ||||
{ | { | ||||
stop(); | stop(); | ||||
// TODO: SD.open probably needs to be done with the audio interrupt disabled... | |||||
wavfile = SD.open(filename); | wavfile = SD.open(filename); | ||||
if (!wavfile) return false; | if (!wavfile) return false; | ||||
buffer_length = 0; | buffer_length = 0; |