[][src]Struct bae_rs::sounds::simple_sound::SimpleSound

pub struct SimpleSound { /* fields omitted */ }

Type implementing the ablitiy to run multiple a single Generator by a given list of Modifiers operated in series. This allows for simple and fast processing of the structure's elements while still allowing for a wide range of complex sounds.

Methods

impl SimpleSound[src]

pub fn new(
    input_gain: MathT,
    output_gain: MathT,
    generator: BasicBlockRc
) -> Self
[src]

Constructs a new SimpleSound object. The new object is initialized with an empty Vec of Modifiers. Add Modifiers with add_modifier or extend_modifiers.

pub fn add_modifier<M>(&mut self, m: BasicBlockRc) where
    M: 'static + Clone
[src]

Adds a single modifier to the internal Vec of Modifiers.

pub fn extend_modifiers(&mut self, m_list: Vec<BasicBlockRc>)[src]

Extends the internal Vec of Modifiers with the given Vec.

pub fn get_input_gain(&self) -> MathT[src]

Returns the linear gain applied to the input during processing.

pub fn get_output_gain(&self) -> MathT[src]

Returns the linear gain applied to the output during processing.

pub fn set_input_gain(&mut self, g: MathT)[src]

Sets the input linear gain that is applied during processing.

pub fn set_output_gain(&mut self, g: MathT)[src]

Sets the output linear gain that is applied during processing.

Trait Implementations

impl Clone for SimpleSound[src]

impl Sound for SimpleSound[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<T> From<T> for T[src]

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> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,