A class for creating a wide range of audio filters. More...
#include <AsyncAudioFilter.h>
A class for creating a wide range of audio filters.
Definition at line 113 of file AsyncAudioFilter.h.
Async::AudioFilter::AudioFilter | ( | const std::string & | filter_spec, | |
int | sample_rate = INTERNAL_SAMPLE_RATE | |||
) | [explicit] |
Constuctor.
filter_spec | The filter specification | |
sample_rate | The sampling rate |
Async::AudioFilter::~AudioFilter | ( | void | ) |
Destructor.
void Async::AudioFilter::processSamples | ( | float * | dest, | |
const float * | src, | |||
int | count | |||
) | [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 is called from the base 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.
void Async::AudioFilter::reset | ( | void | ) |
Reset the filter state.
void Async::AudioFilter::setOutputGain | ( | float | gain | ) | [inline] |
Set the output gain of the filter.
gain | The gain to set |
Definition at line 133 of file AsyncAudioFilter.h.