pub struct Lv2Processor { /* private fields */ }Implementations§
Source§impl Lv2Processor
impl Lv2Processor
pub fn new( sample_rate: f64, buffer_size: usize, uri: &str, ) -> Result<Self, String>
pub fn uri(&self) -> &str
pub fn name(&self) -> &str
pub fn audio_inputs(&self) -> &[Arc<AudioIO>]
pub fn audio_outputs(&self) -> &[Arc<AudioIO>]
pub fn audio_input_count(&self) -> usize
pub fn audio_output_count(&self) -> usize
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 setup_audio_ports(&self)
pub fn process( &mut self, input_channels: &[Vec<f32>], frames: usize, ) -> Vec<Vec<f32>>
pub fn process_with_audio_io( &mut self, frames: usize, midi_inputs: &[Vec<MidiEvent>], transport: Lv2TransportInfo, ) -> Vec<Vec<MidiEvent>>
pub fn snapshot_state(&self) -> Lv2PluginState
pub fn snapshot_port_state(&self) -> Lv2PluginState
pub fn restore_state(&mut self, state: &Lv2PluginState) -> Result<(), String>
pub fn instance_access_handle(&self) -> Option<usize>
pub fn set_state_base_dir(&mut self, base_dir: PathBuf)
pub fn control_ports_with_values(&self) -> Vec<Lv2ControlPortInfo>
pub fn set_control_value( &mut self, index: u32, value: f32, ) -> Result<(), String>
pub fn midnam_note_names(&self) -> HashMap<u8, String>
Trait Implementations§
Source§impl Debug for Lv2Processor
impl Debug for Lv2Processor
Auto Trait Implementations§
impl !Freeze for Lv2Processor
impl !RefUnwindSafe for Lv2Processor
impl Send for Lv2Processor
impl !Sync for Lv2Processor
impl Unpin for Lv2Processor
impl UnsafeUnpin for Lv2Processor
impl !UnwindSafe for Lv2Processor
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> 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