RolloffCallback

Trait RolloffCallback 

Source
pub trait RolloffCallback {
    // Required method
    fn rolloff(channel_control: ChannelControl, distance: c_float) -> c_float;
}
Expand description

Trait for this particular FMOD callback.

No self parameter is passed to the callback!

Required Methods§

Source

fn rolloff(channel_control: ChannelControl, distance: c_float) -> c_float

Callback to allow custom calculation of distance attenuation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§