AUDIO
Source snapshot · 11 November 2026

API reference / ravet_plugin::clap::ClapAudio

Struct ClapAudio 

pub struct ClapAudio<'a, P: PluginExport> { /* private fields */ }
Expand description

Audio-thread side of one active plug-in instance.

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<P: PluginExport> PluginAudioProcessorParams for ClapAudio<'_, P>

§

fn flush(&mut self, input: &InputEvents<'_>, output: &mut OutputEvents<'_>)

Flushes a set of parameter changes. Read more
§

impl<P: PluginExport> PluginTailImpl for ClapAudio<'_, P>

§

fn get(&self) -> TailLength

Returns the plugin’s [TailLength].

Auto Trait Implementations§

§

impl<'a, P> !Sync for ClapAudio<'a, P>

§

impl<'a, P> Freeze for ClapAudio<'a, P>
where <P as PluginExport>::Processor: Freeze,

§

impl<'a, P> RefUnwindSafe for ClapAudio<'a, P>

§

impl<'a, P> Send for ClapAudio<'a, P>

§

impl<'a, P> Unpin for ClapAudio<'a, P>
where <P as PluginExport>::Processor: Unpin,

§

impl<'a, P> UnsafeUnpin for ClapAudio<'a, P>

§

impl<'a, P> UnwindSafe for ClapAudio<'a, P>

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.