pub trait AudioProcessorHandle: Send + Sync {
    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);

    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

Should return the number of parameters.

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

Should return the value for the parameter at this index

Should set the value for the parameter at this index

Provided Methods

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

Implementors