VVSDK  1.0
The VVAmbisonic Library
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CHighPassFilter Class Reference

#include <HighPass.h>

Inheritance diagram for CHighPassFilter:
CIIRFilter CFilter

Public Member Functions

 CHighPassFilter ()
 
 CHighPassFilter (float f1)
 
virtual ~CHighPassFilter ()
 
void setSamplingRate (float sr)
 
void setFreqs (float f1)
 
void doFilter (float *node, long sampleFrames)
 
- Public Member Functions inherited from CIIRFilter
 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 ()
 
void updateCoefficients ()
 
- Protected Member Functions inherited from CIIRFilter
void init ()
 

Protected Attributes

float m_fF1
 
double a0
 
double a1
 
double a2
 
double b0
 
double b1
 
double b2
 
double x1
 
double x2
 
double y1
 
double y2
 
- Protected Attributes inherited from CIIRFilter
int m_nForm
 
CFilterCoefficientsm_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]
 
CFilterCoefficientscoefs
 
int numChannels
 

Detailed Description

Second order biquad highpass filter.

Constructor & Destructor Documentation

CHighPassFilter::CHighPassFilter ( )

Constructor

CHighPassFilter::CHighPassFilter ( float  f1)

Destructor

CHighPassFilter::~CHighPassFilter ( )
virtual

Member Function Documentation

void CHighPassFilter::doFilter ( float *  node,
long  sampleFrames 
)
virtual

Process audio blocks

Reimplemented from CFilter.

void CHighPassFilter::init ( )
protectedvirtual

Reimplemented from CFilter.

void CHighPassFilter::setFreqs ( float  f1)

Sets the cutoff frequency

void CHighPassFilter::setSamplingRate ( float  sr)
virtual

Sets the sampling rate

Reimplemented from CFilter.

void CHighPassFilter::updateCoefficients ( )
protected

Recalculates coefficients from input frequencies and sampling rate

Member Data Documentation

double CHighPassFilter::a0
protected
double CHighPassFilter::a1
protected
double CHighPassFilter::a2
protected
double CHighPassFilter::b0
protected
double CHighPassFilter::b1
protected
double CHighPassFilter::b2
protected
float CHighPassFilter::m_fF1
protected
double CHighPassFilter::x1
protected
double CHighPassFilter::x2
protected
double CHighPassFilter::y1
protected
double CHighPassFilter::y2
protected

The documentation for this class was generated from the following files: