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

#include <ShelfFilterI.h>

Inheritance diagram for CShelfFilterI:
CIIRFilter CFilter

Public Member Functions

 CShelfFilterI ()
 
 CShelfFilterI (float dCenterFreq, float dBGain)
 
virtual ~CShelfFilterI ()
 
void setSamplingRate (float sr)
 
void doFilter (float *node, long sampleFrames)
 
void setCenterFreq (float dCenterFreq)
 
void setHighBandGain (float dBGain)
 
- Public Member Functions inherited from CIIRFilter
 CIIRFilter ()
 
 CIIRFilter (int form)
 
 ~CIIRFilter ()
 
void SetXML (CXMLElement *xml)
 
void setCoefficients (CFilterCoefficients *coef)
 
bool canProcess ()
 
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 Attributes

float m_dCenterFreq
 
float m_dBGain
 
double a1
 
double b0
 
double b1
 
double y0
 
double x0
 
double x1
 
double a1z
 
double b0z
 
double b1z
 
double a1d
 
double b0d
 
double b1d
 
bool firstBlock
 
- 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

Pole zero shelf filter Pole zero shelf filter according to Lee for use in ambisonic decoders

Constructor & Destructor Documentation

CShelfFilterI::CShelfFilterI ( )

Constructor

CShelfFilterI::CShelfFilterI ( float  dCenterFreq,
float  dBGain 
)

Constructor setting parameters

CShelfFilterI::~CShelfFilterI ( )
virtual

Destructor

Member Function Documentation

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

Process audio blocks

Reimplemented from CIIRFilter.

void CShelfFilterI::init ( )
protectedvirtual

Reimplemented from CIIRFilter.

void CShelfFilterI::setCenterFreq ( float  dCenterFreq)

Sets center frequency

void CShelfFilterI::setHighBandGain ( float  dBGain)

Sets gain above cutoff

void CShelfFilterI::setSamplingRate ( float  sr)
virtual

Sets sampling rate

Reimplemented from CIIRFilter.

void CShelfFilterI::updateCoefficients ( )
protected

Member Data Documentation

double CShelfFilterI::a1
protected
double CShelfFilterI::a1d
protected
double CShelfFilterI::a1z
protected
double CShelfFilterI::b0
protected
double CShelfFilterI::b0d
protected
double CShelfFilterI::b0z
protected
double CShelfFilterI::b1
protected
double CShelfFilterI::b1d
protected
double CShelfFilterI::b1z
protected
bool CShelfFilterI::firstBlock
protected
float CShelfFilterI::m_dBGain
protected
float CShelfFilterI::m_dCenterFreq
protected
double CShelfFilterI::x0
protected
double CShelfFilterI::x1
protected
double CShelfFilterI::y0
protected

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