[][src]Trait bae_rs::sounds::Block

pub trait Block {
    fn prime_input(&mut self, x: SampleT);
fn process(&mut self) -> SampleT; }

Trait used for generalizing the interface that allows for the processing of multiple audio objects (be they Generators or Modifiers or both).

Required methods

fn prime_input(&mut self, x: SampleT)

Increments the internal input sample by the given sample.

fn process(&mut self) -> SampleT

Process the Block. Individually processes the stored Generator and Modifier objects which are both combined using the Inter and returned.

Loading content...

Implementors

impl Block for StandardBlock[src]

Loading content...