diff libgsmfrp/state.c @ 4:286d5f097eb4

libgsmfrp: implement comfort noise generation
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 19 Nov 2022 20:16:09 +0000
parents 3cd5ad24b1d4
children
line wrap: on
line diff
--- a/libgsmfrp/state.c	Sat Nov 19 09:03:57 2022 +0000
+++ b/libgsmfrp/state.c	Sat Nov 19 20:16:09 2022 +0000
@@ -3,6 +3,7 @@
  * of state structures for our GSM FR preprocessor.
  */
 
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include "gsm_fr_preproc.h"
@@ -21,4 +22,5 @@
 void gsmfr_preproc_reset(struct gsmfr_preproc_state *st)
 {
 	memset(st, 0, sizeof(struct gsmfr_preproc_state));
+	st->cn_random_lfsr = PN_INITIAL_SEED;
 }