pub type IPLAirAbsorptionCallback = Option<unsafe extern "C" fn(distance: IPLfloat32, band: IPLint32, userData: *mut c_void) -> f32>;Expand description
Callback for calculating how much air absorption should be applied to a sound based on its distance from the listener.
\param distance The distance (in meters) between the source and the listener. \param band Index of the frequency band for which to calculate air absorption. \c 0 = low frequencies, \c 1 = middle frequencies, \c 2 = high frequencies. \param userData Pointer to the arbitrary data specified in the \c IPLAirAbsorptionModel.
\return The air absorption to apply, between \c 0 and \c 1. \c 0 = sound in the frequency band \c band is not audible, \c 1 = sound in the frequency band \c band is not attenuated.
Aliased Type§
pub enum IPLAirAbsorptionCallback {
None,
Some(unsafe extern "C" fn(f32, i32, *mut c_void) -> f32),
}