[−][src]Trait bae_rs::channels::Channel
Trait defining the simplest possible interface for a channel, with the ability to process a batch of samples at a time.
Required methods
fn set_process_time(&mut self, d: Duration)
Sets the amount of time process
should calculate samples for. The
given duration is truncated to a integer sample value.
fn get_output(&self) -> &TrackT
Returns a reference to the internal track of samples.
fn set_gain(&mut self, gain: MathT)
Sets the gain of the output of the channel.
fn process(&mut self)
Processes the given number of samples, storing the results in the internal track of samples.