#[repr(C)]pub struct HostCallbackInfo {
pub hostUserData: *mut c_void,
pub beatAndTempoProc: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut f64, *mut f64) -> i32>,
pub musicalTimeLocationProc: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut u32, *mut f32, *mut u32, *mut f64) -> i32>,
pub transportStateProc: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut u8, *mut u8, *mut f64, *mut u8, *mut f64, *mut f64) -> i32>,
pub transportStateProc2: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut u8, *mut u8, *mut u8, *mut f64, *mut u8, *mut f64, *mut f64) -> i32>,
}Expand description
Contains the various callbacks for an audio unit to call
Any callback can be NULL.
See also Apple’s documentation
Fields§
§hostUserData: *mut c_void§beatAndTempoProc: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut f64, *mut f64) -> i32>§musicalTimeLocationProc: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut u32, *mut f32, *mut u32, *mut f64) -> i32>§transportStateProc: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut u8, *mut u8, *mut f64, *mut u8, *mut f64, *mut f64) -> i32>§transportStateProc2: Option<unsafe extern "C-unwind" fn(*mut c_void, *mut u8, *mut u8, *mut u8, *mut f64, *mut u8, *mut f64, *mut f64) -> i32>Trait Implementations§
Source§impl Clone for HostCallbackInfo
impl Clone for HostCallbackInfo
Source§fn clone(&self) -> HostCallbackInfo
fn clone(&self) -> HostCallbackInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostCallbackInfo
Source§impl Debug for HostCallbackInfo
impl Debug for HostCallbackInfo
Source§impl Encode for HostCallbackInfo
impl Encode for HostCallbackInfo
Source§impl PartialEq for HostCallbackInfo
impl PartialEq for HostCallbackInfo
Source§fn eq(&self, other: &HostCallbackInfo) -> bool
fn eq(&self, other: &HostCallbackInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefEncode for HostCallbackInfo
impl RefEncode for HostCallbackInfo
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl StructuralPartialEq for HostCallbackInfo
Auto Trait Implementations§
impl !Send for HostCallbackInfo
impl !Sync for HostCallbackInfo
impl Freeze for HostCallbackInfo
impl RefUnwindSafe for HostCallbackInfo
impl Unpin for HostCallbackInfo
impl UnsafeUnpin for HostCallbackInfo
impl UnwindSafe for HostCallbackInfo
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.