ost::DTMFDetect Class Reference

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

#include <audio2.h>

Inheritance diagram for ost::DTMFDetect:

ost::Audio List of all members.

Public Member Functions

 DTMFDetect ()
 ~DTMFDetect ()
int putSamples (Linear buffer, int count)
 This routine is used to push linear audio data into the dtmf tone detection analysizer.
int getResult (char *data, int size)
 Copy detected dtmf results into a data buffer.

Protected Member Functions

void goertzelInit (goertzel_state_t *s, tone_detection_descriptor_t *t)
void goertzelUpdate (goertzel_state_t *s, Sample 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

ost::DTMFDetect::DTMFDetect (   ) 
 

ost::DTMFDetect::~DTMFDetect (   ) 
 


Member Function Documentation

int ost::DTMFDetect::getResult (  char *  data,
int  size
) 
 

Copy detected dtmf results into a data buffer.

Parameters:
data buffer to copy into.
size of data buffer to copy into.

void ost::DTMFDetect::goertzelInit (  goertzel_state_t *  s,
tone_detection_descriptor_t *  t
)  [protected]
 

float ost::DTMFDetect::goertzelResult (  goertzel_state_t *  s  )  [protected]
 

void ost::DTMFDetect::goertzelUpdate (  goertzel_state_t *  s,
Sample  x[],
int  samples
)  [protected]
 

int ost::DTMFDetect::putSamples (  Linear  buffer,
int  count
) 
 

This routine is used to push linear audio data into the dtmf tone detection analysizer.

It may be called multiple times and results fetched later.

Parameters:
buffer of audio data in native machine endian to analysize.
count of samples to analysize from buffer.


The documentation for this class was generated from the following file:
Generated on Wed Jun 21 01:32:40 2006 for ccAudio by  doxygen 1.4.6