| { | { | ||||
| stop(); | stop(); | ||||
| AudioStartUsingSPI(); | AudioStartUsingSPI(); | ||||
| __disable_irq(); | |||||
| rawfile = SD.open(filename); | rawfile = SD.open(filename); | ||||
| __enable_irq(); | |||||
| if (!rawfile) { | if (!rawfile) { | ||||
| //Serial.println("unable to open file"); | //Serial.println("unable to open file"); | ||||
| AudioStopUsingSPI(); | |||||
| return false; | return false; | ||||
| } | } | ||||
| file_size = rawfile.size(); | file_size = rawfile.size(); |