pub type IPLDirectivityCallback = Option<unsafe extern "C" fn(direction: IPLVector3, userData: *mut c_void) -> f32>;Expand description
Callback for calculating how much to attenuate a sound based on its directivity pattern and orientation in world space.
\param direction Unit vector (in world space) pointing forwards from the source. This is the direction that the source is “pointing towards”. \param userData Pointer to the arbitrary data specified in the \c IPLDirectivity.
\return The directivity value to apply, between \c 0 and \c 1. \c 0 = the sound is not audible, \c 1 = the sound is as loud as it would be if it had a uniform (omnidirectional) directivity pattern.
Aliased Type§
pub enum IPLDirectivityCallback {
None,
Some(unsafe extern "C" fn(IPLVector3, *mut c_void) -> f32),
}