From 01d13f797ad40c9014fdea4629dd6ab61c1ceeaa Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 7 Dec 2001 17:37:51 +0000 Subject: [PATCH] Tweak how tire squeal volume is calculated ... probably needs some more work. --- src/Sound/fg_fx.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Sound/fg_fx.cxx b/src/Sound/fg_fx.cxx index a344fd425..c7820b94b 100644 --- a/src/Sound/fg_fx.cxx +++ b/src/Sound/fg_fx.cxx @@ -315,9 +315,12 @@ FGFX::update () if (cur_fdm_state->get_gear_unit(i)->GetWoW()) { gearOnGround++; if (!_gear_on_ground[i]) { - double squeal_volume = cur_fdm_state->get_V_down() / 5.0; + // 3 parts horizontal velocity + 1 part vertical velocity + double squeal_volume = 0.75 * cur_fdm_state->get_V_equiv_kts() / 90.0 + + 0.25 * cur_fdm_state->get_V_down() / 5.0; if (squeal_volume > 0.1) { _squeal->set_volume(squeal_volume); + _squeal->set_pitch(1.25); mgr->play_once("squeal"); } _gear_on_ground[i] = true;