diff --git a/src/AudioGeneratorMOD.cpp b/src/AudioGeneratorMOD.cpp index 6a3a07c..cb828b2 100644 --- a/src/AudioGeneratorMOD.cpp +++ b/src/AudioGeneratorMOD.cpp @@ -70,7 +70,7 @@ bool AudioGeneratorMOD::stop() FatBuffer.channels[i] = NULL; } - if(running && (file != NULL) && (file->isOpen() == true)) { + if(running || ((file != NULL) && (file->isOpen() == true))) { output->flush(); //flush I2S output buffer, if the player was actually running before. }