diff libgsmefr/dtx.h @ 52:988fd7ff514f

libgsmefr: add state pointers to ETSI function prototypes
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 25 Nov 2022 08:22:41 +0000
parents 36e1363ad885
children a18782a7d270
line wrap: on
line diff
--- a/libgsmefr/dtx.h	Fri Nov 25 06:46:22 2022 +0000
+++ b/libgsmefr/dtx.h	Fri Nov 25 08:22:41 2022 +0000
@@ -47,22 +47,23 @@
 #define RX_CNI_BFI               0x0200
 #define RX_FIRST_SP_FLAG         0x0400
 
-void reset_tx_dtx (void);       /* Reset tx dtx variables */
-void reset_rx_dtx (void);       /* Reset rx dtx variables */
+void reset_tx_dtx (struct EFR_encoder_state *st);  /* Reset tx dtx variables */
+void reset_rx_dtx (struct EFR_decoder_state *st);  /* Reset rx dtx variables */
 
 void tx_dtx (
-    Word16 VAD_flag,
-    Word16 *txdtx_ctrl
+    struct EFR_encoder_state *st,
+    Word16 VAD_flag
 );
 
 void rx_dtx (
-    Word16 *rxdtx_ctrl,
+    struct EFR_decoder_state *st,
     Word16 TAF,
     Word16 bfi,
     Word16 SID_flag
 );
 
 void CN_encoding (
+    struct EFR_encoder_state *st,
     Word16 params[],
     Word16 txdtx_ctrl
 );
@@ -86,11 +87,13 @@
 );
 
 void update_gain_code_history_tx (
+    struct EFR_encoder_state *st,
     Word16 new_gain_code,
     Word16 gain_code_old_tx[4 * DTX_HANGOVER]
 );
 
 void update_gain_code_history_rx (
+    struct EFR_decoder_state *st,
     Word16 new_gain_code,
     Word16 gain_code_old_rx[4 * DTX_HANGOVER]
 );