|
Audaspace
1.3.0
A high level audio library.
|
This class provides an interface for infinite impulse response filters via a callback filter function. More...
#include <CallbackIIRFilterReader.h>

Public Member Functions | |
| CallbackIIRFilterReader (std::shared_ptr< IReader > reader, int in, int out, doFilterIIR doFilter, endFilterIIR endFilter=0, void *data=nullptr) | |
| Creates a new callback IIR filter reader. More... | |
| virtual sample_t | filter () |
| Runs the filtering function. More... | |
Public Member Functions inherited from BaseIIRFilterReader | |
| sample_t | x (int pos) |
| Retrieves the last input samples. More... | |
| sample_t | y (int pos) |
| Retrieves the last output samples. More... | |
| virtual void | read (int &length, bool &eos, sample_t *buffer) |
| Request to read the next length samples out of the source. More... | |
| virtual void | sampleRateChanged (SampleRate rate) |
| Notifies the filter about a sample rate change. More... | |
Public Member Functions inherited from EffectReader | |
| EffectReader (std::shared_ptr< IReader > reader) | |
| Creates a new effect reader. More... | |
| virtual | ~EffectReader () |
| Destroys the reader. | |
| virtual bool | isSeekable () const |
| Tells whether the source provides seeking functionality or not. More... | |
| virtual void | seek (int position) |
| Seeks to a specific position in the source. More... | |
| virtual int | getLength () const |
| Returns an approximated length of the source in samples. More... | |
| virtual int | getPosition () const |
| Returns the position of the source as a sample count value. More... | |
| virtual Specs | getSpecs () const |
| Returns the specification of the reader. More... | |
Public Member Functions inherited from IReader | |
| virtual | ~IReader () |
| Destroys the reader. | |
Additional Inherited Members | |
Protected Member Functions inherited from BaseIIRFilterReader | |
| BaseIIRFilterReader (std::shared_ptr< IReader > reader, int in, int out) | |
| Creates a new base IIR filter reader. More... | |
| void | setLengths (int in, int out) |
| Sets the length for the required input and output samples of the IIR filter. More... | |
Protected Attributes inherited from EffectReader | |
| std::shared_ptr< IReader > | m_reader |
| The reader to read from. | |
This class provides an interface for infinite impulse response filters via a callback filter function.
| CallbackIIRFilterReader::CallbackIIRFilterReader | ( | std::shared_ptr< IReader > | reader, |
| int | in, | ||
| int | out, | ||
| doFilterIIR | doFilter, | ||
| endFilterIIR | endFilter = 0, |
||
| void * | data = nullptr |
||
| ) |
Creates a new callback IIR filter reader.
| reader | The reader to read from. |
| in | The count of past input samples needed. |
| out | The count of past output samples needed. |
| doFilter | The filter callback. |
| endFilter | The finishing callback. |
| data | Data pointer for the callbacks. |
|
virtual |
Runs the filtering function.
Implements BaseIIRFilterReader.
1.8.14