goertzel Class Reference

#include <dtmffilter.h>

List of all members.


Detailed Description

Definition at line 7 of file dtmffilter.h.


Public Member Functions

 goertzel (int N, float targetFreq, float sampleRate)
 ~goertzel ()
int process (short *samples, int length)

Private Member Functions

void checkMatch ()
void processOneSample (short sample)
void reset ()
void initialise (int N, float targetFreq, float sampleRate)

Private Attributes

float Q1
float Q2
float coeff
float sine
float cosine
int countToN
int m_N
int Match

Constructor & Destructor Documentation

goertzel::goertzel ( int  N,
float  targetFreq,
float  sampleRate 
)

Definition at line 172 of file dtmffilter.cpp.

goertzel::~goertzel (  ) 

Definition at line 177 of file dtmffilter.cpp.


Member Function Documentation

int goertzel::process ( short *  samples,
int  length 
)

Definition at line 197 of file dtmffilter.cpp.

Referenced by DtmfFilter::process().

void goertzel::checkMatch (  )  [private]

Definition at line 181 of file dtmffilter.cpp.

Referenced by process().

void goertzel::processOneSample ( short  sample  )  [private]

Definition at line 214 of file dtmffilter.cpp.

Referenced by process().

void goertzel::reset ( void   )  [private]

Definition at line 223 of file dtmffilter.cpp.

Referenced by checkMatch(), and initialise().

void goertzel::initialise ( int  N,
float  targetFreq,
float  sampleRate 
) [private]

Definition at line 231 of file dtmffilter.cpp.

Referenced by goertzel().


Member Data Documentation

float goertzel::Q1 [private]

Definition at line 20 of file dtmffilter.h.

Referenced by checkMatch(), processOneSample(), and reset().

float goertzel::Q2 [private]

Definition at line 20 of file dtmffilter.h.

Referenced by checkMatch(), processOneSample(), and reset().

float goertzel::coeff [private]

Definition at line 20 of file dtmffilter.h.

Referenced by checkMatch(), initialise(), and processOneSample().

float goertzel::sine [private]

Definition at line 20 of file dtmffilter.h.

Referenced by initialise().

float goertzel::cosine [private]

Definition at line 20 of file dtmffilter.h.

Referenced by initialise().

int goertzel::countToN [private]

Definition at line 21 of file dtmffilter.h.

Referenced by process(), and reset().

int goertzel::m_N [private]

Definition at line 21 of file dtmffilter.h.

Referenced by initialise(), and process().

int goertzel::Match [private]

Definition at line 22 of file dtmffilter.h.

Referenced by checkMatch(), and process().


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

Generated on Sat Dec 18 05:16:03 2010 for MythTV by  doxygen 1.5.5