comparison 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
comparison
equal deleted inserted replaced
3:3cd5ad24b1d4 4:286d5f097eb4
1 /* 1 /*
2 * In this module we implement allocation and initialization 2 * In this module we implement allocation and initialization
3 * of state structures for our GSM FR preprocessor. 3 * of state structures for our GSM FR preprocessor.
4 */ 4 */
5 5
6 #include <stdint.h>
6 #include <stdlib.h> 7 #include <stdlib.h>
7 #include <string.h> 8 #include <string.h>
8 #include "gsm_fr_preproc.h" 9 #include "gsm_fr_preproc.h"
9 #include "internal.h" 10 #include "internal.h"
10 11
19 } 20 }
20 21
21 void gsmfr_preproc_reset(struct gsmfr_preproc_state *st) 22 void gsmfr_preproc_reset(struct gsmfr_preproc_state *st)
22 { 23 {
23 memset(st, 0, sizeof(struct gsmfr_preproc_state)); 24 memset(st, 0, sizeof(struct gsmfr_preproc_state));
25 st->cn_random_lfsr = PN_INITIAL_SEED;
24 } 26 }