From e376830c295ace72e30402f4a0f8cc5bb96e84ca Mon Sep 17 00:00:00 2001 From: Daniel Monteiro Date: Mon, 1 Jul 2024 22:12:17 +0100 Subject: [PATCH] [MY] Fix annoying continuous beep when the game ends It still has a longish beep, but once the screen is finished with drawing, it stops. --- my_frontend/src/UI.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/my_frontend/src/UI.c b/my_frontend/src/UI.c index 55c061cbc..d25b239d9 100644 --- a/my_frontend/src/UI.c +++ b/my_frontend/src/UI.c @@ -137,7 +137,11 @@ void performAction(void) { clearScreen(); drawTextWindow( 0, (YRES / 8) + 1, (XRES_FRAMEBUFFER / 8) - 1, lines + 1, "", msg); - while (1); + while (1) { + if (soundDriver != kNoSound) { + soundTick(); + } + } } }