changeset 55:92dc7f0082a3

libgsmefr: autocorr.c compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 25 Nov 2022 16:38:54 +0000
parents 7b11cbe99a0e
children 902bc4b64cc6
files libgsmefr/Makefile libgsmefr/autocorr.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libgsmefr/Makefile	Fri Nov 25 16:35:07 2022 +0000
+++ b/libgsmefr/Makefile	Fri Nov 25 16:38:54 2022 +0000
@@ -1,6 +1,6 @@
 CC=	gcc
 CFLAGS=	-O2
-OBJS=	agc.o basicop2.o dec_create.o enc_create.o frame2params.o \
+OBJS=	agc.o autocorr.o basicop2.o dec_create.o enc_create.o frame2params.o \
 	params2frame.o sid_class.o sid_insert.o tls_flags.o
 HDRS=	basic_op.h cnst.h codec.h d_homing.h dec_state.h dtx.h e_homing.h \
 	enc_state.h gains_tb.h gsm_efr.h namespace.h no_count.h oper_32b.h \
--- a/libgsmefr/autocorr.c	Fri Nov 25 16:35:07 2022 +0000
+++ b/libgsmefr/autocorr.c	Fri Nov 25 16:38:54 2022 +0000
@@ -13,18 +13,21 @@
  *
  *************************************************************************/
 
+#include "gsm_efr.h"
 #include "typedef.h"
+#include "namespace.h"
 #include "basic_op.h"
 #include "oper_32b.h"
-#include "count.h"
+#include "no_count.h"
 #include "cnst.h"
+#include "sig_proc.h"
 
 Word16 Autocorr (
     Word16 x[],         /* (i)    : Input signal                    */
     Word16 m,           /* (i)    : LPC order                       */
     Word16 r_h[],       /* (o)    : Autocorrelations  (msb)         */
     Word16 r_l[],       /* (o)    : Autocorrelations  (lsb)         */
-    Word16 wind[]       /* (i)    : window for LPC analysis         */
+    const Word16 wind[] /* (i)    : window for LPC analysis         */
 )
 {
     Word16 i, j, norm;