pub struct Vst3ExportedProcessor<P> { /* private fields */ }Expand description
A graph Processor wrapped as a VST3-shaped plugin instance.
Pairs a sim-lib-plugin-core ProcessorPlugin with a Vst3ParamMap that
translates host-facing VST3 parameter ids into the SIM parameter ids the
inner processor understands. The wrapper implements PluginInstance, so it
can be driven through the shared plugin-host contract.
Implementations§
Source§impl<P> Vst3ExportedProcessor<P>
impl<P> Vst3ExportedProcessor<P>
Sourcepub fn new(
descriptor: PluginDescriptor,
processor: P,
param_map: Vst3ParamMap,
) -> Self
pub fn new( descriptor: PluginDescriptor, processor: P, param_map: Vst3ParamMap, ) -> Self
Wraps processor under descriptor, using param_map for VST3-to-SIM
parameter id translation.
Sourcepub fn param_map(&self) -> &Vst3ParamMap
pub fn param_map(&self) -> &Vst3ParamMap
Returns the VST3-to-SIM parameter id map for this exported processor.
Trait Implementations§
Source§impl<P: Clone> Clone for Vst3ExportedProcessor<P>
impl<P: Clone> Clone for Vst3ExportedProcessor<P>
Source§fn clone(&self) -> Vst3ExportedProcessor<P>
fn clone(&self) -> Vst3ExportedProcessor<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<P: Debug> Debug for Vst3ExportedProcessor<P>
impl<P: Debug> Debug for Vst3ExportedProcessor<P>
Source§impl<P: Processor> PluginInstance for Vst3ExportedProcessor<P>
impl<P: Processor> PluginInstance for Vst3ExportedProcessor<P>
Source§fn descriptor(&self) -> &PluginDescriptor
fn descriptor(&self) -> &PluginDescriptor
Returns the descriptor that identifies this instance and its port and
parameter layout.
Source§fn state(&self) -> PluginState
fn state(&self) -> PluginState
Captures the instance’s current persistable state. Read more
Source§fn set_state(&mut self, state: PluginState)
fn set_state(&mut self, state: PluginState)
Restores the instance from a previously captured
PluginState. Read moreSource§fn prepare(&mut self, cfg: PrepareConfig)
fn prepare(&mut self, cfg: PrepareConfig)
Prepares the instance for processing under the given configuration.
Source§fn process(&mut self, block: &mut ProcessBlock<'_>)
fn process(&mut self, block: &mut ProcessBlock<'_>)
Processes one audio block in place.
Source§fn latency_frames(&self) -> u32
fn latency_frames(&self) -> u32
Returns the instance’s reported latency in frames. Read more
Auto Trait Implementations§
impl<P> Freeze for Vst3ExportedProcessor<P>where
P: Freeze,
impl<P> RefUnwindSafe for Vst3ExportedProcessor<P>where
P: RefUnwindSafe,
impl<P> Send for Vst3ExportedProcessor<P>where
P: Send,
impl<P> Sync for Vst3ExportedProcessor<P>where
P: Sync,
impl<P> Unpin for Vst3ExportedProcessor<P>where
P: Unpin,
impl<P> UnsafeUnpin for Vst3ExportedProcessor<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Vst3ExportedProcessor<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