From f13c70d028beac130278b857ca84493841fcc7a1 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Tue, 1 Oct 2024 19:52:10 +0200 Subject: [PATCH] fix blow noise input (microphone input takes signed values) --- src/frontend/qt_sdl/EmuInstanceAudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/qt_sdl/EmuInstanceAudio.cpp b/src/frontend/qt_sdl/EmuInstanceAudio.cpp index 21b112ea..a9bf1fb7 100644 --- a/src/frontend/qt_sdl/EmuInstanceAudio.cpp +++ b/src/frontend/qt_sdl/EmuInstanceAudio.cpp @@ -321,7 +321,7 @@ void EmuInstance::micProcess() for (int i = 0; i < 735; i++) { - tmp[i] = mic_blow[sample_pos]; + tmp[i] = mic_blow[sample_pos] ^ 0x8000; sample_pos++; if (sample_pos >= sample_len) sample_pos = 0; }