pub struct ClapExportedProcessor<P> { /* private fields */ }Expand description
A native SIM Processor presented to the host as a CLAP plugin instance.
Wraps the shared ProcessorPlugin from sim-lib-plugin-core together with
a ClapParamMap; the PluginInstance implementation delegates descriptor,
state, and processing to the inner plugin so a SIM processor can be exported
through the CLAP surface.
Implementations§
Source§impl<P> ClapExportedProcessor<P>
impl<P> ClapExportedProcessor<P>
Sourcepub fn new(
descriptor: PluginDescriptor,
processor: P,
param_map: ClapParamMap,
) -> Self
pub fn new( descriptor: PluginDescriptor, processor: P, param_map: ClapParamMap, ) -> Self
Builds an exported instance from a descriptor, the wrapped processor,
and its CLAP-to-SIM param_map.
Sourcepub fn param_map(&self) -> &ClapParamMap
pub fn param_map(&self) -> &ClapParamMap
Returns the CLAP-to-SIM parameter id map for this exported instance.
Trait Implementations§
Source§impl<P: Clone> Clone for ClapExportedProcessor<P>
impl<P: Clone> Clone for ClapExportedProcessor<P>
Source§fn clone(&self) -> ClapExportedProcessor<P>
fn clone(&self) -> ClapExportedProcessor<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 ClapExportedProcessor<P>
impl<P: Debug> Debug for ClapExportedProcessor<P>
Source§impl<P: Processor> PluginInstance for ClapExportedProcessor<P>
impl<P: Processor> PluginInstance for ClapExportedProcessor<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 ClapExportedProcessor<P>where
P: Freeze,
impl<P> RefUnwindSafe for ClapExportedProcessor<P>where
P: RefUnwindSafe,
impl<P> Send for ClapExportedProcessor<P>where
P: Send,
impl<P> Sync for ClapExportedProcessor<P>where
P: Sync,
impl<P> Unpin for ClapExportedProcessor<P>where
P: Unpin,
impl<P> UnsafeUnpin for ClapExportedProcessor<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for ClapExportedProcessor<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