comparison mgw/dtmf_defs.h @ 126:815e4c59162e

mgw DTMF: tone definitions and sample array generation
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 01 Oct 2022 17:09:51 -0800
parents
children 4b35a5a400f1
comparison
equal deleted inserted replaced
125:5081f2bc6f1c 126:815e4c59162e
1 /*
2 * This header file holds various internal definitions for DTMF generation,
3 * including key tunable settings of min and max DTMF duration.
4 */
5
6 #define DTMF_MIN_FRAMES 10 /* 200 ms */
7 #define DTMF_MAX_FRAMES 60 /* 1200 ms */
8
9 struct dtmf_desc {
10 int digit;
11 float freq_low;
12 float freq_high;
13 int16_t *samples;
14 };