Struct audiostream::Amplify [-]  [+] [src]

pub struct Amplify<F, S, P> {
    // some fields omitted
}

Adjust the amplitude of the input stream by a constant factor.

A factor greater than one increases amplitude, less than one reduced amplitude.

Methods

impl<F, S, P> Amplify<F, S, P>

fn new(source: S, factor: P) -> Amplify<F, S, P>

Create a new amplifier (or attenuator).

Trait Implementations

impl<F: Sample, S: Source<Output=F>, P: Float + Sample> Source for Amplify<F, S, P>

type Output = F

fn next<'a>(&'a mut self) -> SourceResult<'a, F>