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§
Sourcefn end(channel_control: ChannelControlType) -> Result<()>
fn end(channel_control: ChannelControlType) -> Result<()>
Called when a sound ends. Supported by Channel
only.
Sourcefn virtual_voice(
channel_control: ChannelControlType,
is_virtual: bool,
) -> Result<()>
fn virtual_voice( channel_control: ChannelControlType, is_virtual: bool, ) -> Result<()>
Sourcefn sync_point(
channel_control: ChannelControlType,
sync_point: c_int,
) -> Result<()>
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.
Sourcefn occlusion(
channel_control: ChannelControlType,
direct: &mut c_float,
reverb: &mut c_float,
) -> Result<()>
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.