Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

DTMFDetect Class Reference

DTMFDetect is used for detecting DTMF tones in a stream of audio. More...

#include <bayonneaudio.h>

List of all members.

Public Member Functions

 DTMFDetect ()
 ~DTMFDetect ()
int putSamples (int16 buffer[], int count)
int getResult (char *buf, int max)

Protected Member Functions

void goertzelInit (goertzel_state_t *s, tone_detection_descriptor_t *t)
void goertzelUpdate (goertzel_state_t *s, int16 x[], int samples)
float goertzelResult (goertzel_state_t *s)


Detailed Description

DTMFDetect is used for detecting DTMF tones in a stream of audio.

It currently only supports 8000Hz input.


Constructor & Destructor Documentation

DTMFDetect::DTMFDetect  ) 
 

DTMFDetect::~DTMFDetect  ) 
 


Member Function Documentation

int DTMFDetect::getResult char *  buf,
int  max
 

void DTMFDetect::goertzelInit goertzel_state_t s,
tone_detection_descriptor_t t
[protected]
 

float DTMFDetect::goertzelResult goertzel_state_t s  )  [protected]
 

void DTMFDetect::goertzelUpdate goertzel_state_t s,
int16  x[],
int  samples
[protected]
 

int DTMFDetect::putSamples int16  buffer[],
int  count
 


The documentation for this class was generated from the following file:
Generated on Tue Sep 13 02:19:09 2005 for Bayonne by  doxygen 1.4.4