#include <audio.h>
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) |
It currently only supports 8000Hz input.
| DTMFDetect::DTMFDetect | ( | ) |
| DTMFDetect::~DTMFDetect | ( | ) |
| int DTMFDetect::putSamples | ( | int16_t | buffer[], | |
| int | count | |||
| ) |
| int DTMFDetect::getResult | ( | char * | buf, | |
| int | max | |||
| ) |
| void DTMFDetect::goertzelInit | ( | goertzel_state_t * | s, | |
| tone_detection_descriptor_t * | t | |||
| ) | [protected] |
| void DTMFDetect::goertzelUpdate | ( | goertzel_state_t * | s, | |
| int16_t | x[], | |||
| int | samples | |||
| ) | [protected] |
| float DTMFDetect::goertzelResult | ( | goertzel_state_t * | s | ) | [protected] |
1.5.1