Struct oxcable::mixers::adder::Adder [] [src]

pub struct Adder {
    // some fields omitted
}

An adder.

The Adder simply sums all of its inputs.

Methods

impl Adder

fn new(num_channels: usize) -> Self

Returns a new adder with num_inputs inputs and one output.

Trait Implementations

impl AudioDevice for Adder

fn num_inputs(&self) -> usize

fn num_outputs(&self) -> usize

fn tick(&mut self, _: Time, inputs: &[Sample], outputs: &mut [Sample])