Trait AudioProcessorHandle

Source
pub trait AudioProcessorHandle: Send + Sync {
    // Required methods
    fn parameter_count(&self) -> usize;
    fn get_parameter_spec(&self, index: usize) -> ParameterSpec;
    fn get_parameter(&self, index: usize) -> Option<ParameterValue>;
    fn set_parameter(&self, index: usize, request: ParameterValue);

    // Provided method
    fn name(&self) -> String { ... }
}
Expand description

This trait can be implemented by AudioProcessor handles to provide runtime introspection on the parameters that a processor provides.

Required Methods§

Source

fn parameter_count(&self) -> usize

Should return the number of parameters.

Source

fn get_parameter_spec(&self, index: usize) -> ParameterSpec

After finding the number of parameters a callee will get ParameterSpec declarations giving more metadata about this parameter.

Source

fn get_parameter(&self, index: usize) -> Option<ParameterValue>

Should return the value for the parameter at this index

Source

fn set_parameter(&self, index: usize, request: ParameterValue)

Should set the value for the parameter at this index

Provided Methods§

Source

fn name(&self) -> String

This method should return the name of the processor. This may displayed in a GUI application as the effect/instrument name.

Implementors§