Trait rsynth::AudioHandlerMeta
source · pub trait AudioHandlerMeta {
// Required methods
fn max_number_of_audio_inputs(&self) -> usize;
fn max_number_of_audio_outputs(&self) -> usize;
}
Expand description
Define the maximum number of audio inputs and the maximum number of audio outputs.
Backends that require the plugin to implement this trait ensure that when calling the
render_buffer
method of the AudioRenderer
trait
- the number of inputs channels (
buffer.number_of_input_channels()
) is smaller than or equal toSelf::max_number_of_audio_inputs()
and - the number of outputs (
buffer.number_of_output_channels()
) is smaller than or equal toSelf::max_number_of_audio_outputs()
.
Remark
This trait can be more conveniently implemented by implementing the Meta
trait.
Required Methods§
sourcefn max_number_of_audio_inputs(&self) -> usize
fn max_number_of_audio_inputs(&self) -> usize
The maximum number of audio inputs supported. This method should return the same value every time it is called.
sourcefn max_number_of_audio_outputs(&self) -> usize
fn max_number_of_audio_outputs(&self) -> usize
The maximum number of audio outputs supported. This method should return the same value every time it is called.