diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mgw/dtmf_defs.h	Sat Oct 01 17:09:51 2022 -0800
@@ -0,0 +1,14 @@
+/*
+ * This header file holds various internal definitions for DTMF generation,
+ * including key tunable settings of min and max DTMF duration.
+ */
+
+#define	DTMF_MIN_FRAMES		10	/* 200 ms */
+#define	DTMF_MAX_FRAMES		60	/* 1200 ms */
+
+struct dtmf_desc {
+	int	digit;
+	float	freq_low;
+	float	freq_high;
+	int16_t	*samples;
+};