Struct volume::Volume [] [src]

pub struct Volume {
    pub current: f32,
    pub interpolation_ms: Ms,
    // some fields omitted
}

A simple dsp node for multiplying the amplitude of its inputs by the held multiplier.

Fields

Methods

impl Volume
[src]

Constructor for a new default volume. The default volume is 1.0, having no impact on the input signal. The default interpolation_ms is 10ms to avoid clipping.

Builder for constructing a Volume with some given volume.

Builder for constructing a Volume with some given interpolation length in Ms. The interpolation length is how long it takes the volume to progress from some previous volume to a new current volume. It is mainly used to avoid clipping.

The default interpolation_ms is 10ms - just enough to avoid clipping.

Set the new current volume.

Trait Implementations

impl Copy for Volume
[src]

impl Clone for Volume
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Volume
[src]

Formats the value using the given formatter.

impl<F> Node<F> for Volume where
    F: Frame, 
[src]

Request audio from the Node given some sample_hz (aka sample rate in hertz). If the Node has no inputs, the buffer will be zeroed. If the Node has some inputs, the buffer will consist of the inputs summed together. Read more

Following the call to the Node's audio_requested method, the Graph will sum together some of the original (dry) signal with some of the processed (wet) signal. Read more

Following the call to the Node's audio_requested method, the Graph will sum together some of the original (dry) signal with some of the processed (wet) signal. Read more