view frtest/Makefile @ 183:452c1d5a6268

libgsmefr BFI w/o data: emit zero output after decoder reset In real-life usage, each EFR decoder session will most likely begin with lots of BFI frames before the first real frame arrives. However, because the spec-defined home state of the decoder is speech rather than CN, our regular logic for BFI w/o data would have to feed pseudorandom noise to the decoder (in the "fixed codebook excitation pulses" part), which is silly to do at the beginning of the decoder session right out of reset. Therefore, let's check reset_flag_old, and if we are still in the reset state, simply emit zero output.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 03 Jan 2023 00:12:18 +0000
parents 80c93ef82a51
children 6de564ef70d3
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	gsmfr-decode gsmfr-decode-r gsmfr-dlcap-gsmx gsmfr-dlcap-parse \
	gsmfr-encode gsmfr-encode-r gsmfr-hand-test gsmfr-max-out gsmfr-preproc
LIBPP=	../libgsmfrp/libgsmfrp.a
LIBTEST=../libtest/libtest.a
LIBDEC=	${LIBTEST} ${LIBPP}
INSTBIN=/opt/freecalypso/bin

all:	${PROGS}

gsmfr-decode:	decode.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ decode.o ${LIBDEC} -lgsm

gsmfr-decode-r:	decode-r.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ decode-r.o ${LIBDEC} -lgsm

gsmfr-dlcap-gsmx:	dlcap-gsmx.o tidsp.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ dlcap-gsmx.o tidsp.o ${LIBTEST}

gsmfr-dlcap-parse:	dlcap-parse.o tidsp.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ dlcap-parse.o tidsp.o ${LIBDEC} -lgsm

gsmfr-encode:	encode.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ encode.o ${LIBTEST} -lgsm

gsmfr-encode-r:	encode-r.o ${LIBTEST}
	${CC} ${CFLAGS} -o $@ encode-r.o ${LIBTEST} -lgsm

gsmfr-hand-test:	hand-test.o
	${CC} ${CFLAGS} -o $@ hand-test.o -lgsm

gsmfr-max-out:	max-out.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ max-out.o ${LIBDEC} -lgsm

gsmfr-preproc:	preproc.o ${LIBDEC}
	${CC} ${CFLAGS} -o $@ preproc.o ${LIBDEC}

install:
	mkdir -p ${INSTBIN}
	install -c ${PROGS} ${INSTBIN}

clean:
	rm -f *.o *.out ${PROGS}