Struct Clap Shared
pub struct ClapShared { /* private fields */ }Expand description
State shared by every thread of one plug-in instance.
Implementations§
pub fn product(&self) -> &ResolvedProduct<'static>
pub fn parameters(&self) -> &ParameterCache
Trait Implementations§
§fn activate(
host: HostAudioProcessorHandle<'a>,
main: &ClapMain<'a>,
shared: &'a ClapShared,
config: PluginAudioConfiguration,
) -> Result<Self, PluginError>
fn activate( host: HostAudioProcessorHandle<'a>, main: &ClapMain<'a>, shared: &'a ClapShared, config: PluginAudioConfiguration, ) -> Result<Self, PluginError>
Creates and activates the audio processor. Read more
§fn process(
&mut self,
process: Process<'_>,
audio: Audio<'_>,
events: Events<'_>,
) -> Result<ProcessStatus, PluginError>
fn process( &mut self, process: Process<'_>, audio: Audio<'_>, events: Events<'_>, ) -> Result<ProcessStatus, PluginError>
Processes a chunk of audio samples and events. Read more
§fn reset(&mut self)
fn reset(&mut self)
Resets the plugin’s audio processing state. Read more
§fn start_processing(&mut self) -> Result<(), PluginError>
fn start_processing(&mut self) -> Result<(), PluginError>
Starts the plugin’s continuous audio processing. Read more
§fn stop_processing(&mut self)
fn stop_processing(&mut self)
Stops the plugin’s continuous audio processing, indicating it is being sent to sleep. Read more
§fn on_main_thread(&self)
fn on_main_thread(&self)
This is called by the host on the main thread, in response to a previous call to
HostSharedHandle::request_callback. Read more