An audio pipe class to clip audio to a given maximum level. More...
#include <AsyncAudioClipper.h>
An audio pipe class to clip audio to a given maximum level.
This is an audio pipe class that is used to clip an audio stream to a given maximum level.
Definition at line 113 of file AsyncAudioClipper.h.
Async::AudioClipper::AudioClipper | ( | float | clip_level = 1.0 |
) | [inline, explicit] |
Default constuctor.
clip_level | The level to clip at (1.0 is default) |
Definition at line 120 of file AsyncAudioClipper.h.
Async::AudioClipper::~AudioClipper | ( | void | ) | [inline] |
Destructor.
Definition at line 125 of file AsyncAudioClipper.h.
virtual void Async::AudioClipper::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 135 of file AsyncAudioClipper.h.
void Async::AudioClipper::setClipLevel | ( | float | level | ) | [inline] |
Set the clip level.
level | The level to set |
Definition at line 131 of file AsyncAudioClipper.h.