#include <audio2.h>
Inheritance diagram for ost::DTMFDetect:
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) |
It currently only supports 8000Hz input.
|
|
|
|
|
Copy detected dtmf results into a data buffer.
|
|
|
|
|
|
|
|
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.
|