FreeCalypso > hg > gsm-codec-lib
view miscutil/Makefile @ 477:4c9222d95647
libtwamr encoder: always emit frame->mode = mode;
In the original implementation of amr_encode_frame(), the 'mode' member
of the output struct was set to 0xFF if the output frame type is TX_NO_DATA.
This design was made to mimic the mode field (16-bit word) being set to
0xFFFF (or -1) in 3GPP test sequence format - but nothing actually depends
on this struct member being set in any way, and amr_frame_to_tseq()
generates the needed 0xFFFF on its own, based on frame->type being equal
to TX_NO_DATA.
It is simpler and more efficient to always set frame->mode to the actual
encoding mode in amr_encode_frame(), and this new behavior has already
been documented in doc/AMR-library-API description in anticipation of
the present change.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 18 May 2024 22:30:42 +0000 |
parents | 7c50864deaff |
children | 785b302992f0 |
line wrap: on
line source
PROGS= amrts-pcm8-compact gsmrec-dump pcm16-check13 pcm16-raw2wav \ pcm16-to-alaw pcm16-to-ulaw pcm16-wav2raw pcm8-to-pcm16 LIBEFR= ../libgsmefr/libgsmefr.a ../libgsmfr2/libgsmfr2.a LIBTEST=../libtest/libtest.a include ../config.defs all: ${PROGS} amrts-pcm8-compact: amrts-pcm8-compact.c ${CC} ${CFLAGS} -o $@ $@.c gsmrec-dump: gsmrec-dump.o ${LIBTEST} ${LIBEFR} ${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR} pcm16-check13: pcm16-check13.c ${CC} ${CFLAGS} -o $@ $@.c pcm16-raw2wav: raw2wav.o ${LIBTEST} ${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST} pcm16-to-alaw: pcm16-to-alaw.c ${CC} ${CFLAGS} -o $@ $@.c pcm16-to-ulaw: pcm16-to-ulaw.c ${CC} ${CFLAGS} -o $@ $@.c pcm16-wav2raw: wav2raw.o ${LIBTEST} ${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST} pcm8-to-pcm16: pcm8-to-pcm16.c ${CC} ${CFLAGS} -o $@ $@.c install: mkdir -p ${DESTDIR}${bindir} install -c ${PROGS} ${DESTDIR}${bindir} clean: rm -f *.o *.out ${PROGS}