# HG changeset patch # User Mychaela Falconia # Date 1772696078 0 # Node ID f8759c85600619e1fe4b232844a2c0d824deb9d4 # Parent d18efcba03bc423e9e2212b118477f34ff6df13c libgsmhr1/enc_state.h: add static vars from dtx.c diff -r d18efcba03bc -r f8759c856006 libgsmhr1/enc_state.h --- 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];