From 47267d92177166cef82a1159d7a5fe48baea412b Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 4 Jan 2023 15:58:43 +0100 Subject: [PATCH] Fix repeated play leading to scrambled sound --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 1d39f86..0f8f78d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -78,6 +78,7 @@ void play() { String path = "/" + selectedFile; Serial.println("Playing file: " + path); + audio.stopSong(); audio.connecttoFS(SD, path.c_str()); }