An audio pipe class for amplification/attenuation of an audio stream. More...
#include <AsyncAudioAmp.h>
An audio pipe class for amplification/attenuation of an audio stream.
Use this class to amplify or attenuate an audio stream.
Definition at line 112 of file AsyncAudioAmp.h.
Async::AudioAmp::AudioAmp | ( | void | ) | [inline] |
Default constuctor.
Definition at line 118 of file AsyncAudioAmp.h.
Async::AudioAmp::~AudioAmp | ( | void | ) | [inline] |
Destructor.
Definition at line 123 of file AsyncAudioAmp.h.
float Async::AudioAmp::gain | ( | void | ) | const [inline] |
void Async::AudioAmp::processSamples | ( | float * | dest, | |
const float * | src, | |||
int | count | |||
) | [inline, protected, virtual] |
Process incoming samples and put them into the output buffer.
dest | Destination buffer | |
src | Source buffer | |
count | Number of samples in the source buffer |
This function should be reimplemented by the inheriting class to do the actual processing of the incoming samples. All samples must be processed, otherwise they are lost and the output buffer will contain garbage.
Implements Async::AudioProcessor.
Definition at line 139 of file AsyncAudioAmp.h.
void Async::AudioAmp::setGain | ( | float | gain_db | ) | [inline] |
Set the gain to use.
gain_db | The gain given in dB |
Definition at line 129 of file AsyncAudioAmp.h.