fix mp3 error behaviour

This commit is contained in:
gemu2015 2021-01-09 08:52:10 +01:00
parent 29df10d837
commit 3b31f22383
1 changed files with 3 additions and 2 deletions

View File

@ -568,7 +568,8 @@ void Play_mp3(const char *path) {
I2S_Task = false;
}
file = new AudioFileSourceFS(*ufsp,path);
file = new AudioFileSourceFS(*ufsp, path);
id3 = new AudioFileSourceID3(file);
if (mp3ram) {
@ -584,11 +585,11 @@ void Play_mp3(const char *path) {
while (mp3->isRunning()) {
if (!mp3->loop()) {
mp3->stop();
mp3_delete();
break;
}
OsWatchLoop();
}
mp3_delete();
}
#endif // USE_SCRIPT