view libgsmfrp/internal.h @ 3:3cd5ad24b1d4

libgsmfrp: implement internal state
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 19 Nov 2022 09:03:57 +0000
parents
children 286d5f097eb4
line wrap: on
line source

/*
 * This header file is internal to libgsmfrp;
 * here we define our state structure.
 */

enum rx_state {
	NO_DATA = 0,
	SPEECH,
	SPEECH_MUTING,
	COMFORT_NOISE,
	LOST_SID,
};

typedef unsigned char cparam;

struct gsmfr_preproc_state {
	enum rx_state	rx_state;
	int		got_valid_sid;
	gsm_frame	speech_frame;
	cparam		cnoise_larc[8];
	cparam		cnoise_xmaxc[4];
};