AudibleT 0.0.1
A real-time A/B/X audio testing tool for subjective assessment of various audio parameters, compatible for general purpose computer as well as embedded systems.
|
An abstract class that defines a basic audio filter. More...
#include <BaseFilter.h>
Public Member Functions | |
virtual | ~BaseFilter () |
Destructor. | |
virtual std::vector< float > | process_buffer (std::vector< float > &inputBuffer)=0 |
Pure virtual function to process a buffer of input samples. | |
virtual float | process_sample (float sample)=0 |
Process a single sample through the filter. | |
An abstract class that defines a basic audio filter.
Derived classes must implement the process_sample() function, which processes an audio sample.
|
virtual |
|
pure virtual |
Pure virtual function to process a buffer of input samples.
This function is expected to be overridden in any class that inherits from this base class. The overriding function should take a vector of floating point samples as input, process each sample, and return a new vector containing the processed samples.
This method should be used when it's more efficient to process a whole buffer of samples at once, rather than calling a process function on each individual sample.
inputBuffer | A vector of input samples to be processed. |
Implemented in ShelfFilter.
|
pure virtual |
Process a single sample through the filter.
This is a pure virtual function that must be implemented by any class that inherits from this class. This function is called for each sample in the audio stream and processes the sample through the filter.
sample | The sample to be processed. This is expected to be a floating point value representing the audio sample. |
Implemented in ShelfFilter.