Lines Matching refs:dtmf
37 /* dtmf detection using goertzel algorithm
42 dsp->dtmf.size = 0;
43 dsp->dtmf.lastwhat = '\0';
44 dsp->dtmf.lastdigit = '\0';
45 dsp->dtmf.count = 0;
54 if (!dsp->dtmf.enable)
92 dsp->dtmf.hardware = hardware;
93 dsp->dtmf.software = !hardware;
112 * dtmf - points to a structure of the current dtmf state
130 dsp->dtmf.digits[0] = '\0';
137 size = dsp->dtmf.size;
138 buf = dsp->dtmf.buffer;
155 return dsp->dtmf.digits;
176 dsp->dtmf.size = size;
179 return dsp->dtmf.digits;
181 dsp->dtmf.size = 0;
188 buf = dsp->dtmf.buffer;
214 if (result[i] > dsp->dtmf.treshold) {
287 if (dsp->dtmf.lastwhat != what)
288 dsp->dtmf.count = 0;
291 if (dsp->dtmf.count == 2) {
292 if (dsp->dtmf.lastdigit != what) {
293 dsp->dtmf.lastdigit = what;
298 if ((strlen(dsp->dtmf.digits) + 1)
299 < sizeof(dsp->dtmf.digits)) {
300 dsp->dtmf.digits[strlen(
301 dsp->dtmf.digits) + 1] = '\0';
302 dsp->dtmf.digits[strlen(
303 dsp->dtmf.digits)] = what;
308 dsp->dtmf.count++;
310 dsp->dtmf.lastwhat = what;