Tweaks to pitch/volume of a couple sound effects.
This commit is contained in:
parent
71a562b695
commit
4b4394774b
1 changed files with 8 additions and 3 deletions
|
@ -78,8 +78,8 @@ FGFX::init ()
|
||||||
//
|
//
|
||||||
_crank = new FGSimpleSound(fgGetString("/sim/sounds/cranking",
|
_crank = new FGSimpleSound(fgGetString("/sim/sounds/cranking",
|
||||||
"Sounds/cranking.wav"));
|
"Sounds/cranking.wav"));
|
||||||
_crank->set_pitch(1.5);
|
_crank->set_pitch(1.25);
|
||||||
_crank->set_volume(0.25);
|
_crank->set_volume(0.175);
|
||||||
mgr->add(_crank, "crank");
|
mgr->add(_crank, "crank");
|
||||||
|
|
||||||
|
|
||||||
|
@ -111,6 +111,7 @@ FGFX::init ()
|
||||||
//
|
//
|
||||||
_flaps = new FGSimpleSound(fgGetString("/sim/sounds/flaps",
|
_flaps = new FGSimpleSound(fgGetString("/sim/sounds/flaps",
|
||||||
"Sounds/flaps.wav"));
|
"Sounds/flaps.wav"));
|
||||||
|
_flaps->set_volume(0.50);
|
||||||
mgr->add(_flaps, "flaps");
|
mgr->add(_flaps, "flaps");
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -210,9 +211,13 @@ FGFX::update ()
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
float rel_wind = cur_fdm_state->get_V_rel_wind(); // FPS
|
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
|
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_volume(volume);
|
||||||
|
_wind->set_pitch(pitch);
|
||||||
set_playing("wind", true);
|
set_playing("wind", true);
|
||||||
} else {
|
} else {
|
||||||
set_playing("wind", false);
|
set_playing("wind", false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue