[−][src]Struct bae_rs::sounds::simple_sound::SimpleSound
Struct implementing the ability to run a single Generator
through a
given list of Modifier
s operated in series. This allows for simple and
fast processing of the structure's elements while still allowing for a wide
range of more complex sounds.
Implementations
impl SimpleSound
[src]
pub fn new(input_gain: MathT, output_gain: MathT, generator: BlockSP) -> Self
[src]
Constructs a new SimpleSound
object. The new object is initialized
with an empty Vec
of Modifier
s. Add Modifier
s with
add_modifier
or extend_modifiers
.
pub fn add_modifier<M>(&mut self, m: BlockSP) where
M: 'static + Clone,
[src]
M: 'static + Clone,
pub fn extend_modifiers(&mut self, m_list: Vec<BlockSP>)
[src]
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]
fn clone(&self) -> SimpleSound
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Sound for SimpleSound
[src]
Auto Trait Implementations
impl !RefUnwindSafe for SimpleSound
impl !Send for SimpleSound
impl !Sync for SimpleSound
impl Unpin for SimpleSound
impl !UnwindSafe for SimpleSound
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,