pub struct RtControl { /* private fields */ }Expand description
A Send handle for pushing MIDI and parameter changes to a RealtimePluginRunner
without locking. Lives on the control thread; the runner lives on the audio thread.
Implementations§
Source§impl RtControl
impl RtControl
Sourcepub fn send_midi(&mut self, event: MidiEvent) -> bool
pub fn send_midi(&mut self, event: MidiEvent) -> bool
Queue a MIDI event for the next block. Returns false if the command queue is full
(the event is dropped rather than blocking the caller).
Sourcepub fn set_parameter(&mut self, id: u32, value: f64) -> bool
pub fn set_parameter(&mut self, id: u32, value: f64) -> bool
Queue a normalized parameter change (0.0..=1.0) for the next block. Returns false
if the queue is full.
Sourcepub fn dropped_command_count(&self) -> u64
pub fn dropped_command_count(&self) -> u64
Total number of commands dropped because the queue was full since this control was created. A persistently rising count means the queue capacity is too small for the control rate.
Auto Trait Implementations§
impl !Freeze for RtControl
impl !RefUnwindSafe for RtControl
impl !Sync for RtControl
impl Send for RtControl
impl Unpin for RtControl
impl UnsafeUnpin for RtControl
impl UnwindSafe for RtControl
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