fix mp3 error behaviour

This commit is contained in:
gemu2015 2021-01-09 08:52:10 +01:00
parent 29df10d837
commit 3b31f22383

View File

@ -569,6 +569,7 @@ void Play_mp3(const char *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