AUDIO
Source snapshot · 11 November 2026

API reference / ravet_plugin::clap::ClapShared

Struct ClapShared 

pub struct ClapShared { /* private fields */ }
Expand description

State shared by every thread of one plug-in instance.

Implementations§

§

impl ClapShared

pub fn product(&self) -> &ResolvedProduct<'static>

pub fn parameters(&self) -> &ParameterCache

pub fn faulted(&self) -> bool

Whether the last processing call failed.

Trait Implementations§

§

impl<'a, P: PluginExport> PluginAudioProcessor<'a, ClapShared, ClapMain<'a>> for ClapAudio<'a, P>

§

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>

Processes a chunk of audio samples and events. Read more
§

fn reset(&mut self)

Resets the plugin’s audio processing state. Read more
§

fn deactivate(self, _: &ClapMain<'a>)

Deactivates the audio processor. Read more
§

fn start_processing(&mut self) -> Result<(), PluginError>

Starts the plugin’s continuous audio processing. Read more
§

fn stop_processing(&mut self)

Stops the plugin’s continuous audio processing, indicating it is being sent to sleep. Read more
§

impl<'a> PluginMainThread<'a, ClapShared> for ClapMain<'a>

§

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
§

impl PluginShared<'_> for ClapShared

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.