VVSDK
1.0
The VVAmbisonic Library
|
#include <IIRFilter.h>
Public Member Functions | |
CIIRFilter () | |
CIIRFilter (int form) | |
~CIIRFilter () | |
void | SetXML (CXMLElement *xml) |
void | setCoefficients (CFilterCoefficients *coef) |
void | setSamplingRate (float sr) |
bool | canProcess () |
void | doFilter (float *node, long sampleFrames) |
void | clearBuffers () |
void | setCoefficientFileName (long sr, char *fileName) |
Public Member Functions inherited from CFilter | |
CFilter () | |
virtual | ~CFilter () |
void | setName (const char *newName) |
const char * | getName () |
virtual int | getNumChannels () |
Protected Member Functions | |
void | init () |
Protected Attributes | |
int | m_nForm |
CFilterCoefficients * | m_coefficients |
int | m_nFiltSizeA |
int | m_nFiltSizeB |
float | m_fInBuffer [MAXFILTSIZE] |
float | m_fOutBuffer [MAXFILTSIZE] |
short | m_nBufPos |
float * | m_fACoefficients |
float * | m_fBCoefficients |
float | m_fScale |
Protected Attributes inherited from CFilter | |
float | m_fSamplingRate |
char | m_strName [81] |
CFilterCoefficients * | coefs |
int | numChannels |
General purpose IIR filter Can do direct form 1 & 2 and cascade of second order sections
CIIRFilter::CIIRFilter | ( | ) |
Constructor
CIIRFilter::CIIRFilter | ( | int | form | ) |
Constructor setting filter form 1-4
CIIRFilter::~CIIRFilter | ( | ) |
Destructor
|
virtual |
Determines whether coefficients exist for the current sampling rate
Reimplemented from CFilter.
|
virtual |
|
virtual |
Process audio blocks
Reimplemented from CFilter.
Reimplemented in CLFFilter, CNFCFilter, CLowPassFilter, CShelfFilterI, and CMitRegFilter.
|
protectedvirtual |
Reimplemented from CFilter.
Reimplemented in CNFCFilter, CShelfFilterI, CLowPassFilter, CLowShelfFilter, CMitRegFilter, CLFFilter, and CHPFilter2.
void CIIRFilter::setCoefficientFileName | ( | long | sr, |
char * | fileName | ||
) |
Loads coefficients from a WAV file, using its sampling rate
|
virtual |
Sets all coefficients for this filter
Reimplemented from CFilter.
|
virtual |
Sets the sampling rate
Reimplemented from CFilter.
Reimplemented in CNFCFilter, CLFFilter, CShelfFilterI, CLowPassFilter, CLowShelfFilter, CHPFilter2, and CMitRegFilter.
void CIIRFilter::SetXML | ( | CXMLElement * | xml | ) |
Returns a CXMLElement containing this filters state
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |