ChannelControlCallback

Trait ChannelControlCallback 

Source
pub trait ChannelControlCallback {
    // Provided methods
    fn end(channel_control: ChannelControlType) -> Result<()> { ... }
    fn virtual_voice(
        channel_control: ChannelControlType,
        is_virtual: bool,
    ) -> Result<()> { ... }
    fn sync_point(
        channel_control: ChannelControlType,
        sync_point: c_int,
    ) -> Result<()> { ... }
    fn occlusion(
        channel_control: ChannelControlType,
        direct: &mut c_float,
        reverb: &mut c_float,
    ) -> Result<()> { ... }
}
Expand description

Trait for this particular FMOD callback.

No self parameter is passed to the callback!

Provided Methods§

Source

fn end(channel_control: ChannelControlType) -> Result<()>

Called when a sound ends. Supported by Channel only.

Source

fn virtual_voice( channel_control: ChannelControlType, is_virtual: bool, ) -> Result<()>

Called when a Channel is made virtual or real. Supported by Channel objects only.

Source

fn sync_point( channel_control: ChannelControlType, sync_point: c_int, ) -> Result<()>

Called when a syncpoint is encountered. Can be from wav file markers or user added. Supported by Channel only.

Source

fn occlusion( channel_control: ChannelControlType, direct: &mut c_float, reverb: &mut c_float, ) -> Result<()>

Called when geometry occlusion values are calculated. Can be used to clamp or change the value. Supported by Channel and ChannelGroup.

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§