view mgw/dtmf_defs.h @ 160:4b35a5a400f1

mgw/dtmf_defs.h: reduce DTMF_MIN_FRAMES to 5 (100 ms)
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 12 Oct 2022 13:05:26 -0800
parents 815e4c59162e
children a6eb2de277f6
line wrap: on
line source

/*
 * This header file holds various internal definitions for DTMF generation,
 * including key tunable settings of min and max DTMF duration.
 */

#define	DTMF_MIN_FRAMES		5	/* 100 ms */
#define	DTMF_MAX_FRAMES		60	/* 1200 ms */

struct dtmf_desc {
	int	digit;
	float	freq_low;
	float	freq_high;
	int16_t	*samples;
};