28 #ifndef ASYNC_AUDIO_FILTER_INCLUDED 29 #define ASYNC_AUDIO_FILTER_INCLUDED 120 explicit AudioFilter(
int sample_rate = INTERNAL_SAMPLE_RATE);
131 explicit AudioFilter(
const std::string &filter_spec,
132 int sample_rate = INTERNAL_SAMPLE_RATE);
195 std::string error_str;
199 void deleteFilter(
void);
The base class for an audio processor.
void setOutputGain(float gain_db)
Set the output gain of the filter.
bool parseFilterSpec(const std::string &filter_spec)
Create the filter from the given filter specification.
AudioFilter(int sample_rate=INTERNAL_SAMPLE_RATE)
Constuctor.
~AudioFilter(void)
Destructor.
Namespace for the asynchronous programming classes.
void processSamples(float *dest, const float *src, int count)
Process incoming samples and put them into the output buffer.
std::string errorString(void) const
Get the latest filter creation error.
The base class for an audio processor class.
void reset(void)
Reset the filter state.
A class for creating a wide range of audio filters.