Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions examples/SimpleAudioPlayer/SimpleAudioPlayer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ void setup() {

// 44100kHz stereo => 88200 sample rate
// 100 mSec of prebuffering.
Audio.begin(88200, 100);
}

void loop() {
int count = 0;

// open wave file from sdcard
File myFile = SD.open("test.wav");
Audio.begin(88200, 100);
if (!myFile) {
// if the file didn't open, print an error and stop
Serial.println("error opening test.wav");
Expand Down Expand Up @@ -75,8 +75,7 @@ void loop() {
}
}
myFile.close();

Audio.close();
Serial.println("End of file. Thank you for listening!");
while (true) ;
}