dsp.h (cb5629b10d64a8006622ce3a52bc887d91057d69) dsp.h (a5355c27d26001865a5ac32c868c82a523c275d3)
1/*
2 * Audio support data for ISDN4Linux.
3 *
4 * Copyright 2002/2003 by Andreas Eversberg (jolly@eversberg.eu)
5 *
6 * This software may be used and distributed according to the terms
7 * of the GNU General Public License, incorporated herein by reference.
8 *

--- 98 unchanged lines hidden (view full) ---

107
108
109/**************
110 * DTMF stuff *
111 **************/
112
113#define DSP_DTMF_NPOINTS 102
114
1/*
2 * Audio support data for ISDN4Linux.
3 *
4 * Copyright 2002/2003 by Andreas Eversberg (jolly@eversberg.eu)
5 *
6 * This software may be used and distributed according to the terms
7 * of the GNU General Public License, incorporated herein by reference.
8 *

--- 98 unchanged lines hidden (view full) ---

107
108
109/**************
110 * DTMF stuff *
111 **************/
112
113#define DSP_DTMF_NPOINTS 102
114
115#define ECHOCAN_BUFLEN (4*128)
115#define ECHOCAN_BUFF_SIZE 0x400 /* must be 2**n */
116#define ECHOCAN_BUFF_MASK 0x3ff /* -1 */
116
117struct dsp_dtmf {
118 int treshold; /* above this is dtmf (square of) */
119 int software; /* dtmf uses software decoding */
120 int hardware; /* dtmf uses hardware decoding */
121 int size; /* number of bytes in buffer */
122 signed short buffer[DSP_DTMF_NPOINTS];
123 /* buffers one full dtmf frame */

--- 142 unchanged lines hidden ---
117
118struct dsp_dtmf {
119 int treshold; /* above this is dtmf (square of) */
120 int software; /* dtmf uses software decoding */
121 int hardware; /* dtmf uses hardware decoding */
122 int size; /* number of bytes in buffer */
123 signed short buffer[DSP_DTMF_NPOINTS];
124 /* buffers one full dtmf frame */

--- 142 unchanged lines hidden ---