Struct rsynth::backend::vst_backend::VstPluginWrapper
source · pub struct VstPluginWrapper<P> { /* private fields */ }
Expand description
A struct used internally by the vst_init
macro. Normally, plugin’s do not need to use this.
Implementations§
source§impl<P> VstPluginWrapper<P>where
for<'a> P: CommonAudioPortMeta + VstPluginMeta + AudioHandler + ContextualEventHandler<Timed<RawMidiEvent>, HostCallback> + ContextualAudioRenderer<f32, HostCallback> + ContextualAudioRenderer<f64, HostCallback> + ContextualEventHandler<Timed<SysExEvent<'a>>, HostCallback>,
impl<P> VstPluginWrapper<P>where
for<'a> P: CommonAudioPortMeta + VstPluginMeta + AudioHandler + ContextualEventHandler<Timed<RawMidiEvent>, HostCallback> + ContextualAudioRenderer<f32, HostCallback> + ContextualAudioRenderer<f64, HostCallback> + ContextualEventHandler<Timed<SysExEvent<'a>>, HostCallback>,
pub fn get_info(&self) -> Info
pub fn new(plugin: P, host: HostCallback) -> Self
pub fn host(&self) -> &HostCallback
pub fn process<'b>(&mut self, buffer: &mut AudioBuffer<'b, f32>)
pub fn process_f64<'b>(&mut self, buffer: &mut AudioBuffer<'b, f64>)
pub fn get_input_info(&self, input_index: i32) -> ChannelInfo
pub fn get_output_info(&self, output_index: i32) -> ChannelInfo
pub fn process_events(&mut self, events: &Events)
pub fn set_sample_rate(&mut self, sample_rate: f64)
Auto Trait Implementations§
impl<P> RefUnwindSafe for VstPluginWrapper<P>where
P: RefUnwindSafe,
impl<P> Send for VstPluginWrapper<P>where
P: Send,
impl<P> Sync for VstPluginWrapper<P>where
P: Sync,
impl<P> Unpin for VstPluginWrapper<P>where
P: Unpin,
impl<P> UnwindSafe for VstPluginWrapper<P>where
P: UnwindSafe,
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