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 to Self::max_number_of_audio_inputs() and
  • the number of outputs (buffer.number_of_output_channels()) is smaller than or equal to Self::max_number_of_audio_outputs().

Remark

This trait can be more conveniently implemented by implementing the Meta trait.

Required Methods§

source

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.

source

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.

Implementors§

source§

impl<S, E, M> AudioHandlerMeta for TestPlugin<S, E, M>

source§

impl<T> AudioHandlerMeta for T
where T: Meta, T::MetaData: Port<AudioPort>,