Parse the current temperature and humidity to the sound code for proper sound velocity and distance attenuation (with ditance based frequency response filtering). AeonWave only.
This commit is contained in:
parent
88644185b3
commit
c739d47793
1 changed files with 4 additions and 0 deletions
|
@ -207,6 +207,10 @@ FGAircraftModel::update (double dt)
|
|||
_speed_e->getDoubleValue(),
|
||||
_speed_d->getDoubleValue() );
|
||||
_fx->set_velocity( _velocity );
|
||||
|
||||
float temp_c = fgGetFloat("/environment/temperature-degc");
|
||||
float humidity = fgGetFloat("/environment/relative-humidity");
|
||||
_fx->set_atmosphere( temp_c, humidity );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue