From 4b4394774b7ac5b2beb67b13d91c4fd1d1a33659 Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 30 Nov 2001 17:55:28 +0000 Subject: [PATCH] Tweaks to pitch/volume of a couple sound effects. --- src/Sound/fg_fx.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Sound/fg_fx.cxx b/src/Sound/fg_fx.cxx index c780807d9..ddb58ce05 100644 --- a/src/Sound/fg_fx.cxx +++ b/src/Sound/fg_fx.cxx @@ -78,8 +78,8 @@ FGFX::init () // _crank = new FGSimpleSound(fgGetString("/sim/sounds/cranking", "Sounds/cranking.wav")); - _crank->set_pitch(1.5); - _crank->set_volume(0.25); + _crank->set_pitch(1.25); + _crank->set_volume(0.175); mgr->add(_crank, "crank"); @@ -111,6 +111,7 @@ FGFX::init () // _flaps = new FGSimpleSound(fgGetString("/sim/sounds/flaps", "Sounds/flaps.wav")); + _flaps->set_volume(0.50); mgr->add(_flaps, "flaps"); // @@ -210,9 +211,13 @@ FGFX::update () //////////////////////////////////////////////////////////////////// float rel_wind = cur_fdm_state->get_V_rel_wind(); // FPS + float airspeed_kt = cur_fdm_state->get_V_equiv_kts(); if (rel_wind > 60.0) { // a little off 30kt - float volume = rel_wind/600.0; // FIXME!!! + // float volume = rel_wind/600.0; // FIXME!!! + float volume = rel_wind/937.0; // FIXME!!! + double pitch = 1.0+(airspeed_kt/113.0); _wind->set_volume(volume); + _wind->set_pitch(pitch); set_playing("wind", true); } else { set_playing("wind", false); -- 2.39.5