From a9943ce8bf1c3fb224fce9a9f94cc4621bf9d77a Mon Sep 17 00:00:00 2001 From: Gregor Klevze Date: Sun, 21 Dec 2025 17:26:53 +0100 Subject: [PATCH] when clearing lines play voices --- src/app/TetrisApp.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/app/TetrisApp.cpp b/src/app/TetrisApp.cpp index 10432e8..e76fffb 100644 --- a/src/app/TetrisApp.cpp +++ b/src/app/TetrisApp.cpp @@ -468,6 +468,20 @@ int TetrisApp::Impl::init() suppressLineVoiceForLevelUp = false; }); + // Keep co-op line-clear SFX behavior identical to classic. + coopGame->setSoundCallback([this, playVoiceCue](int linesCleared) { + if (linesCleared <= 0) { + return; + } + + SoundEffectManager::instance().playSound("clear_line", 1.0f); + + if (!suppressLineVoiceForLevelUp) { + playVoiceCue(linesCleared); + } + suppressLineVoiceForLevelUp = false; + }); + game->setLevelUpCallback([this](int /*newLevel*/) { if (skipNextLevelUpJingle) { skipNextLevelUpJingle = false;