pub struct Lv2ExportedProcessor<P> { /* private fields */ }Expand description
A SIM graph Processor presented as an LV2-shaped PluginInstance.
Wraps the shared ProcessorPlugin from sim-lib-plugin-core, pairing a
PluginDescriptor with the inner processor so a native SIM processor can
be exported and hosted as if it were an LV2 plugin.
Implementations§
Source§impl<P> Lv2ExportedProcessor<P>
impl<P> Lv2ExportedProcessor<P>
Sourcepub fn new(descriptor: PluginDescriptor, processor: P) -> Self
pub fn new(descriptor: PluginDescriptor, processor: P) -> Self
Pairs processor with descriptor to form an exported plugin instance.
Trait Implementations§
Source§impl<P: Clone> Clone for Lv2ExportedProcessor<P>
impl<P: Clone> Clone for Lv2ExportedProcessor<P>
Source§fn clone(&self) -> Lv2ExportedProcessor<P>
fn clone(&self) -> Lv2ExportedProcessor<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 Lv2ExportedProcessor<P>
impl<P: Debug> Debug for Lv2ExportedProcessor<P>
Source§impl<P: Processor> PluginInstance for Lv2ExportedProcessor<P>
impl<P: Processor> PluginInstance for Lv2ExportedProcessor<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 Lv2ExportedProcessor<P>where
P: Freeze,
impl<P> RefUnwindSafe for Lv2ExportedProcessor<P>where
P: RefUnwindSafe,
impl<P> Send for Lv2ExportedProcessor<P>where
P: Send,
impl<P> Sync for Lv2ExportedProcessor<P>where
P: Sync,
impl<P> Unpin for Lv2ExportedProcessor<P>where
P: Unpin,
impl<P> UnsafeUnpin for Lv2ExportedProcessor<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Lv2ExportedProcessor<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