pub struct ClapProcessor { /* private fields */ }Implementations§
Source§impl ClapProcessor
impl ClapProcessor
pub fn new( sample_rate: f64, buffer_size: usize, plugin_spec: &str, input_count: usize, output_count: usize, ) -> Result<Self, String>
pub fn setup_audio_ports(&self)
pub fn process_with_audio_io(&self, frames: usize)
pub fn process_with_midi( &self, frames: usize, midi_in: &[MidiEvent], transport: ClapTransportInfo, ) -> Vec<ClapMidiOutputEvent>
pub fn parameter_infos(&self) -> Vec<ClapParameterInfo>
pub fn parameter_values(&self) -> HashMap<u32, f64>
pub fn set_parameter(&self, param_id: u32, value: f64) -> Result<(), String>
pub fn set_parameter_at( &self, param_id: u32, value: f64, frame: u32, ) -> Result<(), String>
pub fn begin_parameter_edit(&self, param_id: u32) -> Result<(), String>
pub fn begin_parameter_edit_at( &self, param_id: u32, frame: u32, ) -> Result<(), String>
pub fn end_parameter_edit(&self, param_id: u32) -> Result<(), String>
pub fn end_parameter_edit_at( &self, param_id: u32, frame: u32, ) -> Result<(), String>
pub fn snapshot_state(&self) -> Result<ClapPluginState, String>
pub fn restore_state(&self, state: &ClapPluginState) -> Result<(), String>
pub fn audio_inputs(&self) -> &[Arc<AudioIO>]
pub fn audio_outputs(&self) -> &[Arc<AudioIO>]
pub fn main_audio_input_count(&self) -> usize
pub fn main_audio_output_count(&self) -> usize
pub fn midi_input_count(&self) -> usize
pub fn midi_output_count(&self) -> usize
pub fn path(&self) -> &str
pub fn name(&self) -> &str
Trait Implementations§
Source§impl Clone for ClapProcessor
impl Clone for ClapProcessor
Source§fn clone(&self) -> ClapProcessor
fn clone(&self) -> ClapProcessor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClapProcessor
impl !RefUnwindSafe for ClapProcessor
impl Send for ClapProcessor
impl Sync for ClapProcessor
impl Unpin for ClapProcessor
impl UnsafeUnpin for ClapProcessor
impl !UnwindSafe for ClapProcessor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more