#[repr(C, packed(4))]pub struct MTAudioProcessingTapCallbacks {
pub version: c_int,
pub clientInfo: *mut c_void,
pub init: MTAudioProcessingTapInitCallback,
pub finalize: MTAudioProcessingTapFinalizeCallback,
pub prepare: MTAudioProcessingTapPrepareCallback,
pub unprepare: MTAudioProcessingTapUnprepareCallback,
pub process: MTAudioProcessingTapProcessCallback,
}MTAudioProcessingTap and objc2-core-audio-types and objc2-core-media only.Expand description
Note that for 64-bit architectures, this struct contains misaligned function pointers. To avoid link-time issues, it is recommended that clients fill MTAudioProcessingTapCallbacks’ function pointer fields by using assignment statements, rather than declaring them as global or static structs. Field: version The version number of the structure passed in as a parameter to MTAudioProcessingTapCreate(). Must be kMTAudioProcessingTapCallbacksVersion_0. Field: clientInfo Client data that will be passed to the init callback when it is invoked. Can be NULL. Field: init A callback to allow the client to initialize the tap processor. Can be NULL. This callback is called before MTAudioProcessingTapCreate() returns. Field: finalize A callback to allow the client to perform any necessary cleanup. Can be NULL. This callback will be called exactly once when the MTAudioProcessingTap object is finalized. Field: prepare A callback to allow the client to prepare the tap processor (allocate memory buffers, etc). Can be NULL. Note that the callback may be called multiple times. Field: unprepare A callback to allow the client to perform any necessary cleanup for which that is prepared. Can be NULL. Field: process A callback for processing the audio.
See also Apple’s documentation
Fields§
§version: c_int§clientInfo: *mut c_void§init: MTAudioProcessingTapInitCallback§finalize: MTAudioProcessingTapFinalizeCallback§prepare: MTAudioProcessingTapPrepareCallback§unprepare: MTAudioProcessingTapUnprepareCallback§process: MTAudioProcessingTapProcessCallbackTrait Implementations§
Source§impl Clone for MTAudioProcessingTapCallbacks
impl Clone for MTAudioProcessingTapCallbacks
Source§fn clone(&self) -> MTAudioProcessingTapCallbacks
fn clone(&self) -> MTAudioProcessingTapCallbacks
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Encode for MTAudioProcessingTapCallbacks
Available on crate feature objc2 only.
impl Encode for MTAudioProcessingTapCallbacks
objc2 only.Source§impl PartialEq for MTAudioProcessingTapCallbacks
impl PartialEq for MTAudioProcessingTapCallbacks
Source§fn eq(&self, other: &MTAudioProcessingTapCallbacks) -> bool
fn eq(&self, other: &MTAudioProcessingTapCallbacks) -> bool
self and other values to be equal, and is used by ==.Source§impl RefEncode for MTAudioProcessingTapCallbacks
Available on crate feature objc2 only.
impl RefEncode for MTAudioProcessingTapCallbacks
objc2 only.