From b14ffd20df3edca8c66584d4322006b43aef111d Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 10 Feb 2026 20:33:23 -0800 Subject: [PATCH] Re-enable jump and land sounds for mounts Jump effort and landing sounds are fine - issue was with idle fidget animations, not jump/land action sounds. Strict fidget filtering remains. --- src/audio/mount_sound_manager.cpp | 37 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/src/audio/mount_sound_manager.cpp b/src/audio/mount_sound_manager.cpp index 8750ca32..27c37dc1 100644 --- a/src/audio/mount_sound_manager.cpp +++ b/src/audio/mount_sound_manager.cpp @@ -277,16 +277,15 @@ void MountSoundManager::playJumpSound() { if (elapsed < 200) return; lastActionSoundTime_ = now; - // Jump effort sound - DISABLED (attack sounds have pained growls) - // if (currentMountType_ == MountType::GROUND && !horseJumpSounds_.empty()) { - // static std::mt19937 rng(std::random_device{}()); - // std::uniform_int_distribution dist(0, horseJumpSounds_.size() - 1); - // const auto& sample = horseJumpSounds_[dist(rng)]; - // if (!sample.data.empty()) { - // AudioEngine::instance().playSound2D(sample.data, 0.5f * volumeScale_, 1.1f); - // } - // } else - if (currentMountType_ == MountType::FLYING && !wingFlapSounds_.empty()) { + // Jump effort sound + if (currentMountType_ == MountType::GROUND && !horseJumpSounds_.empty()) { + static std::mt19937 rng(std::random_device{}()); + std::uniform_int_distribution dist(0, horseJumpSounds_.size() - 1); + const auto& sample = horseJumpSounds_[dist(rng)]; + if (!sample.data.empty()) { + AudioEngine::instance().playSound2D(sample.data, 0.5f * volumeScale_, 1.1f); + } + } else if (currentMountType_ == MountType::FLYING && !wingFlapSounds_.empty()) { // Flying mounts: wing whoosh static std::mt19937 rng(std::random_device{}()); std::uniform_int_distribution dist(0, wingFlapSounds_.size() - 1); @@ -306,15 +305,15 @@ void MountSoundManager::playLandSound() { if (elapsed < 200) return; lastActionSoundTime_ = now; - // Landing thud/hoof sound - DISABLED (wound sounds have pained growls) - // if (currentMountType_ == MountType::GROUND && !horseLandSounds_.empty()) { - // static std::mt19937 rng(std::random_device{}()); - // std::uniform_int_distribution dist(0, horseLandSounds_.size() - 1); - // const auto& sample = horseLandSounds_[dist(rng)]; - // if (!sample.data.empty()) { - // AudioEngine::instance().playSound2D(sample.data, 0.6f * volumeScale_, 0.85f); - // } - // } + // Landing thud/hoof sound + if (currentMountType_ == MountType::GROUND && !horseLandSounds_.empty()) { + static std::mt19937 rng(std::random_device{}()); + std::uniform_int_distribution dist(0, horseLandSounds_.size() - 1); + const auto& sample = horseLandSounds_[dist(rng)]; + if (!sample.data.empty()) { + AudioEngine::instance().playSound2D(sample.data, 0.6f * volumeScale_, 0.85f); + } + } } void MountSoundManager::playIdleSound() {