mirror of
https://github.com/Crocmagnon/buzzer.git
synced 2024-11-24 00:48:03 +01:00
Fix repeated play leading to scrambled sound
This commit is contained in:
parent
707a099e63
commit
47267d9217
1 changed files with 1 additions and 0 deletions
|
@ -78,6 +78,7 @@ void play()
|
||||||
{
|
{
|
||||||
String path = "/" + selectedFile;
|
String path = "/" + selectedFile;
|
||||||
Serial.println("Playing file: " + path);
|
Serial.println("Playing file: " + path);
|
||||||
|
audio.stopSong();
|
||||||
audio.connecttoFS(SD, path.c_str());
|
audio.connecttoFS(SD, path.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue