#[repr(C)]pub enum SystemCallbackType {
DeviceListChanged = 0,
DeviceLost = 1,
MemoryAllocationFailed = 2,
ThreadCreated = 3,
BadDSPConnection = 4,
BadDSPLevel = 5,
ThreadDestroyed = 6,
Max = 7,
ForceInt = 65_536,
}
Expand description
These callback types are used with
Channel::set_callback
.
Variants§
DeviceListChanged = 0
Called from Sys::update
when the enumerated list of
devices has changed.
DeviceLost = 1
Called from Sys::update
when an output device has
been lost due to control panel parameter changes and FMOD cannot automatically recover.
MemoryAllocationFailed = 2
Called directly when a memory allocation fails somewhere in FMOD. (NOTE - ‘system’ will be NULL in this callback type.)
ThreadCreated = 3
Called directly when a thread is created.
BadDSPConnection = 4
Called when a bad connection was made with
Dsp::add_input
. Usually called from mixer thread
because that is where the connections are made.
BadDSPLevel = 5
Called when too many effects were added exceeding the maximum tree depth of 128. This is most likely caused by accidentally adding too many DSP effects. Usually called from mixer thread because that is where the connections are made.
ThreadDestroyed = 6
Called directly when a thread is destroyed.
Max = 7
Maximum number of callback types supported.
ForceInt = 65_536
Makes sure this enum is signed 32bit.
Trait Implementations§
Source§impl Clone for SystemCallbackType
impl Clone for SystemCallbackType
Source§fn clone(&self) -> SystemCallbackType
fn clone(&self) -> SystemCallbackType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more