pub struct MidiVSTConverter { /* private fields */ }
Expand description
This is an unsafe converter from MIDI events received from midir
into the rust-vst
VST api.
It’s unsafe because it must do manual memory allocation & management to interface with the VST C-style API.
Pre-allocates buffers of MIDI events up-front. Capacity is set to 100 MIDI messages by default.
More than 100 midi messages being passed into it in a single buffer tick will result in dropped messages.
The collecting phase of the audio-thread should collect at most a limit of messages.
Threshold can be changed in the future to include more.
Implementations
sourceimpl MidiVSTConverter
impl MidiVSTConverter
sourcepub fn new(capacity: usize) -> Self
pub fn new(capacity: usize) -> Self
Create a new MidiVSTConverter with capacity.
Will pre-allocate buffers.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MidiVSTConverter
impl !Send for MidiVSTConverter
impl !Sync for MidiVSTConverter
impl Unpin for MidiVSTConverter
impl UnwindSafe for MidiVSTConverter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more