diff options
Diffstat (limited to 'digits.h')
-rw-r--r-- | digits.h | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -1,5 +1,5 @@ /* - * Zapata Telephony Telephony + * Zapata Telephony * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,25 +17,27 @@ * * Use DTMF/MFv1 tables */ + #ifndef _DIGITS_H #define _DIGITS_H -#define DEFAULT_DTMF_LENGTH 100 * 8 -#define DEFAULT_MFV1_LENGTH 60 * 8 -#define PAUSE_LENGTH 500 * 8 +#define DEFAULT_DTMF_LENGTH 100 * ZT_CHUNKSIZE +#define DEFAULT_MFV1_LENGTH 60 * ZT_CHUNKSIZE +#define PAUSE_LENGTH 500 * ZT_CHUNKSIZE /* At the end of silence, the tone stops */ -static struct zt_tone dtmf_silence = - { 0, 0, 0, 0, 0, 0, DEFAULT_DTMF_LENGTH, NULL }; +static struct zt_tone dtmf_silence = { + .tonesamples = DEFAULT_DTMF_LENGTH, +}; /* At the end of silence, the tone stops */ -static struct zt_tone mfv1_silence = - { 0, 0, 0, 0, 0, 0, DEFAULT_MFV1_LENGTH, NULL }; +static struct zt_tone mfv1_silence = { + .tonesamples = DEFAULT_MFV1_LENGTH, +}; /* A pause in the dialing */ -static struct zt_tone tone_pause = - { 0, 0, 0, 0, 0, 0, PAUSE_LENGTH, NULL }; - -#include "tones.h" +static struct zt_tone tone_pause = { + .tonesamples = PAUSE_LENGTH, +}; #endif |