diff options
Diffstat (limited to 'src/common/dtmf.c')
-rw-r--r-- | src/common/dtmf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/dtmf.c b/src/common/dtmf.c index b052fd5..b9870a1 100644 --- a/src/common/dtmf.c +++ b/src/common/dtmf.c @@ -20,6 +20,7 @@ #include <stdint.h> #include <string.h> #include <math.h> +#include "sample.h" #include "dtmf.h" #define PI M_PI @@ -27,7 +28,7 @@ #define TX_PEAK_DTMF 7000 /* single dtmf tone peak (note this is half to total peak) */ #define DTMF_DURATION 0.100 /* duration in seconds */ -int dsp_sine_dtmf[256]; +static double dsp_sine_dtmf[256]; void dtmf_init(dtmf_t *dtmf, int samplerate) { @@ -75,7 +76,7 @@ void dtmf_set_tone(dtmf_t *dtmf, char tone) } /* Generate audio stream from DTMF tone. Keep phase for next call of function. */ -void dtmf_tone(dtmf_t *dtmf, int16_t *samples, int length) +void dtmf_tone(dtmf_t *dtmf, sample_t *samples, int length) { double *phaseshift, *phase; int i, pos, max; |