[][src]Trait rsynth::AudioRenderer

pub trait AudioRenderer<F>: AudioHandler {
    fn render_buffer(&mut self, inputs: &[&[F]], outputs: &mut [&mut [F]]);
}

Defines how audio is rendered.

The type parameter F refers to the floating point type. It is typically f32 or f64.

Required methods

fn render_buffer(&mut self, inputs: &[&[F]], outputs: &mut [&mut [F]])

This method is called repeatedly for subsequent buffers.

You may assume that the number of inputs (inputs.len()) is smaller than or equal to [Self::max_number_of_audio_inputs()]. You may assume that the number of outputs (outputs.len()) is smaller than or equal to [Self::max_number_of_audio_outputs()].

The lengths of all elements of inputs and the lengths of all elements of outputs are all guaranteed to equal to each other. This shared length can however be different for subsequent calls to render_buffer.

Loading content...

Implementors

Loading content...