FreeCalypso > hg > gsm-codec-lib
comparison 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 |
comparison
equal
deleted
inserted
replaced
2:2b5770c715ee | 3:3cd5ad24b1d4 |
---|---|
1 /* | |
2 * This header file is internal to libgsmfrp; | |
3 * here we define our state structure. | |
4 */ | |
5 | |
6 enum rx_state { | |
7 NO_DATA = 0, | |
8 SPEECH, | |
9 SPEECH_MUTING, | |
10 COMFORT_NOISE, | |
11 LOST_SID, | |
12 }; | |
13 | |
14 typedef unsigned char cparam; | |
15 | |
16 struct gsmfr_preproc_state { | |
17 enum rx_state rx_state; | |
18 int got_valid_sid; | |
19 gsm_frame speech_frame; | |
20 cparam cnoise_larc[8]; | |
21 cparam cnoise_xmaxc[4]; | |
22 }; |