Enum SystemCallbackType

Source
#[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

Source§

fn clone(&self) -> SystemCallbackType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SystemCallbackType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for SystemCallbackType

Source§

fn eq(&self, other: &SystemCallbackType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for SystemCallbackType

Source§

fn partial_cmp(&self, other: &SystemCallbackType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for SystemCallbackType

Source§

impl StructuralPartialEq for SystemCallbackType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.