diff --git a/src/frontend/qt_sdl/EmuInstanceAudio.cpp b/src/frontend/qt_sdl/EmuInstanceAudio.cpp index 4952d090..a4ac9394 100644 --- a/src/frontend/qt_sdl/EmuInstanceAudio.cpp +++ b/src/frontend/qt_sdl/EmuInstanceAudio.cpp @@ -330,7 +330,11 @@ void EmuInstance::micProcess() micBufferReadPos += len; } - if (len < kFrameLen) + if (len == 0) + { + memset(tmp, 0, sizeof(tmp)); + } + else if (len < kFrameLen) { for (int i = len; i < kFrameLen; i++) tmp[i] = tmp[len-1];