pub struct FfiProcessor { /* private fields */ }Expand description
Wraps a DevProcessorVTable into a safe DevAudioProcessor.
Owns the opaque processor instance and dispatches through vtable function pointers. All allocation and deallocation happens inside the dylib via the vtable — no cross-allocator issues.
Implementations§
Source§impl FfiProcessor
impl FfiProcessor
Sourcepub fn new(vtable: &DevProcessorVTable) -> Option<Self>
pub fn new(vtable: &DevProcessorVTable) -> Option<Self>
Create a new FFI processor from a loaded vtable.
Calls the vtable’s create function to allocate the processor
inside the dylib. Returns None if create returns null
(indicating a panic or allocation failure inside the dylib).
Sourcepub fn take_unsupported_channel_count(&self) -> u32
pub fn take_unsupported_channel_count(&self) -> u32
Non-RT diagnostic hook: returns and resets the count of callback invocations that were skipped due to receiving more than 2 channels.
Sourcepub fn take_unsupported_channel_flag(&self) -> bool
pub fn take_unsupported_channel_flag(&self) -> bool
Non-RT diagnostic hook: returns whether any unsupported channel event occurred since the last call, then clears the flag.
Trait Implementations§
Source§impl DevAudioProcessor for FfiProcessor
impl DevAudioProcessor for FfiProcessor
Source§fn apply_plain_values(&mut self, values: &[f32])
fn apply_plain_values(&mut self, values: &[f32])
Apply plain parameter values in canonical generation order.
Source§fn set_sample_rate(&mut self, sample_rate: f32)
fn set_sample_rate(&mut self, sample_rate: f32)
Update the processor’s sample rate.
Source§impl Drop for FfiProcessor
impl Drop for FfiProcessor
impl Send for FfiProcessor
Auto Trait Implementations§
impl !Freeze for FfiProcessor
impl RefUnwindSafe for FfiProcessor
impl !Sync for FfiProcessor
impl Unpin for FfiProcessor
impl UnsafeUnpin for FfiProcessor
impl UnwindSafe for FfiProcessor
Blanket Implementations§
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