[][src]Struct dasp_graph::node::SumBuffers

pub struct SumBuffers;

A stateless node that sums all of the buffers of all of the inputs onto each of the output buffers.

E.g. Given two inputs with three buffers each, all 6 input buffers will be summed onto the first output buffer. If there is more than one output buffer, the result is copied to the remaining output buffers.

After a call to Node::process, each of the output buffers will always have the same contents.

Common use cases:

  • Summing multiple input channels down to a single output channel.
  • Writing a single input channel to multiple output channels.

Trait Implementations

impl Clone for SumBuffers[src]

impl Debug for SumBuffers[src]

impl Node for SumBuffers[src]

impl PartialEq<SumBuffers> for SumBuffers[src]

impl StructuralPartialEq for SumBuffers[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 

impl<T> From<T> for T[src]

impl<S> FromSample<S> for S

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.