pub struct Lv2Processor { /* private fields */ }Implementations§
Source§impl Lv2Processor
impl Lv2Processor
pub fn new( sample_rate: f64, buffer_size: usize, plugin_uri: &str, input_count: usize, output_count: usize, host_binary: PathBuf, ) -> Result<Self, String>
pub fn setup_audio_ports(&self)
pub fn setup_midi_ports(&self)
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 midi_input_ports(&self) -> &[Arc<MIDIIO>]
pub fn midi_output_ports(&self) -> &[Arc<MIDIIO>]
pub fn set_bypassed(&self, bypassed: bool)
pub fn is_bypassed(&self) -> bool
pub fn latency_samples(&self) -> usize
pub fn take_latency_changed(&self) -> bool
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 end_parameter_edit(&self, _param_id: u32) -> Result<(), String>
pub fn is_parameter_edit_active(&self, _param_id: u32) -> bool
pub fn snapshot_state(&self) -> Result<Vec<u8>, String>
pub fn restore_state(&self, state: &[u8]) -> Result<(), String>
pub fn control_ports(&self) -> Result<Vec<Lv2ControlPortInfo>, String>
pub fn note_names(&self) -> Result<HashMap<u8, String>, String>
pub fn set_resource_directory( &self, dir: &Path, shared: bool, ) -> Result<(), String>
pub fn process_with_audio_buffers( &self, frames: usize, transport: Lv2TransportInfo, audio_inputs: &[&[f32]], audio_outputs: &mut [&mut [f32]], ) -> Vec<MidiEvent>
pub fn uri(&self) -> &str
pub fn name(&self) -> &str
pub fn take_stderr(&self) -> Option<ChildStderr>
pub fn begin_parameter_edit_at( &self, _param_id: u32, _frame: u32, ) -> Result<(), String>
pub fn end_parameter_edit_at( &self, _param_id: u32, _frame: u32, ) -> Result<(), String>
pub fn run_host_callbacks_main_thread(&self)
pub fn reconfigure_ports_if_needed(&self) -> Result<bool, String>
pub fn gui_set_parent_x11(&self, window: usize) -> Result<(), String>
pub fn gui_set_parent_wayland(&self, window: usize) -> Result<(), String>
pub fn gui_set_floating_mode(&self, floating: bool) -> Result<(), String>
pub fn gui_show(&self) -> Result<(), String>
pub fn gui_hide(&self)
pub fn drain_echoed_parameters(&self) -> Vec<ParameterEvent>
pub fn drain_midi_outputs(&self) -> Vec<MidiEvent>
Trait Implementations§
Source§impl Drop for Lv2Processor
impl Drop for Lv2Processor
impl Sync for Lv2Processor
Auto Trait Implementations§
impl !Freeze for Lv2Processor
impl !RefUnwindSafe for Lv2Processor
impl !UnwindSafe for Lv2Processor
impl Send for Lv2Processor
impl Unpin for Lv2Processor
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Turns some type into the initial state of some
Application.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