FaustDsp

Trait FaustDsp 

Source
pub trait FaustDsp {
    type T;

Show 18 methods // Required methods fn new() -> Self where Self: Sized; fn metadata(&self, m: &mut dyn Meta); fn get_sample_rate(&self) -> i32; fn get_num_inputs(&self) -> i32; fn get_num_outputs(&self) -> i32; fn class_init(sample_rate: i32) where Self: Sized; fn instance_reset_params(&mut self); fn instance_clear(&mut self); fn instance_constants(&mut self, sample_rate: i32); fn instance_init(&mut self, sample_rate: i32); fn init(&mut self, sample_rate: i32); fn build_user_interface(&self, ui_interface: &mut dyn UI<Self::T>); fn build_user_interface_static(ui_interface: &mut dyn UI<Self::T>) where Self: Sized; fn get_param(&self, param: ParamIndex) -> Option<Self::T>; fn set_param(&mut self, param: ParamIndex, value: Self::T); fn compute( &mut self, count: i32, inputs: &[&[Self::T]], outputs: &mut [&mut [Self::T]], ); // Provided methods fn get_output_rate(&self, channel: i32) -> i32 { ... } fn get_input_rate(&self, channel: i32) -> i32 { ... }
}

Required Associated Types§

Source

type T

Required Methods§

Source

fn new() -> Self
where Self: Sized,

Source

fn metadata(&self, m: &mut dyn Meta)

Source

fn get_sample_rate(&self) -> i32

Source

fn get_num_inputs(&self) -> i32

Source

fn get_num_outputs(&self) -> i32

Source

fn class_init(sample_rate: i32)
where Self: Sized,

Source

fn instance_reset_params(&mut self)

Source

fn instance_clear(&mut self)

Source

fn instance_constants(&mut self, sample_rate: i32)

Source

fn instance_init(&mut self, sample_rate: i32)

Source

fn init(&mut self, sample_rate: i32)

Source

fn build_user_interface(&self, ui_interface: &mut dyn UI<Self::T>)

Source

fn build_user_interface_static(ui_interface: &mut dyn UI<Self::T>)
where Self: Sized,

Source

fn get_param(&self, param: ParamIndex) -> Option<Self::T>

Source

fn set_param(&mut self, param: ParamIndex, value: Self::T)

Source

fn compute( &mut self, count: i32, inputs: &[&[Self::T]], outputs: &mut [&mut [Self::T]], )

Provided Methods§

Source

fn get_output_rate(&self, channel: i32) -> i32

Source

fn get_input_rate(&self, channel: i32) -> i32

Implementors§