DTMFDetect Class Reference

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

#include <audio.h>

List of all members.

Public Member Functions

 DTMFDetect ()
 ~DTMFDetect ()
int putSamples (int16_t 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_t 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_t  x[],
int  samples 
) [protected]

int DTMFDetect::putSamples ( int16_t  buffer[],
int  count 
)


The documentation for this class was generated from the following file:
Generated on Fri Sep 29 21:57:01 2006 for ccAudio by  doxygen 1.4.7