1
0
Fork 0

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:
Erik Hofman 2019-11-04 14:57:43 +01:00
parent 88644185b3
commit c739d47793

View file

@ -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 );
}