FreeCalypso > hg > gsm-codec-lib
changeset 611:f8759c856006
libgsmhr1/enc_state.h: add static vars from dtx.c
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 05 Mar 2026 07:34:38 +0000 |
| parents | d18efcba03bc |
| children | a5879e04ad47 |
| files | libgsmhr1/enc_state.h |
| diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgsmhr1/enc_state.h Thu Mar 05 00:56:30 2026 +0000 +++ b/libgsmhr1/enc_state.h Thu Mar 05 07:34:38 2026 +0000 @@ -46,6 +46,20 @@ short int siUpdPointer; Shortword swNElapsed; Longword pL_GsHist[N_SUB * (OVERHANG - 1)]; + /* previously static vars inside swComfortNoise() */ + struct cn_state { + /* history of unquantized parameters */ + Longword pL_R0Hist[OVERHANG]; + Longword ppL_CorrHist[OVERHANG][NP + 1]; + /* quantized reference parameters */ + Shortword swQntRefR0; + Shortword swRefGsIndex; + int piRefVqCodewds[3]; + /* handling of short speech bursts */ + Shortword swShortBurst; + /* state value of random generator */ + Longword L_TxPNSeed; + } cn_state; /* state variables from sp_frm.c */ Shortword pswAnalysisState[NP]; Shortword pswWStateNum[NP];
