diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libgsmfrp/internal.h	Sat Nov 19 09:03:57 2022 +0000
@@ -0,0 +1,22 @@
+/*
+ * 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];
+};