annotate miscutil/Makefile @ 581:e2d5cad04cbf

libgsmhr1 RxFE: store CN R0+LPC separately from speech In the original GSM 06.06 code the ECU for speech mode is entirely separate from the CN generator, maintaining separate state. (The main intertie between them is the speech vs CN state variable, distinguishing between speech and CN BFIs, in addition to the CN-specific function of distinguishing between initial and update SIDs.) In the present RxFE implementation I initially thought that we could use the same saved_frame buffer for both ECU and CN, overwriting just the first 4 params (R0 and LPC) when a valid SID comes in. However, I now realize it was a bad idea: the original code has a corner case (long sequence of speech-mode BFIs to put the ECU in state 6, then SID and CN-mode BFIs, then a good speech frame) that would be broken by that buffer reuse approach. We could eliminate this corner case by resetting the ECU state when passing through a CN insertion period, but doing so would needlessly increase the behavioral diffs between GSM 06.06 and our version. Solution: use a separate CN-specific buffer for CN R0+LPC parameters, and match the behavior of GSM 06.06 code in this regard.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 Feb 2025 10:02:45 +0000
parents ddb2b00d582b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
520
785b302992f0 miscutil: new program gsmx-to-tw5a
Mychaela Falconia <falcon@freecalypso.org>
parents: 469
diff changeset
1 PROGS= amrts-pcm8-compact gsmrec-dump gsmx-to-tw5a pcm16-check13 pcm16-raw2wav\
524
ddb2b00d582b miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 523
diff changeset
2 pcm16-to-alaw pcm16-to-ulaw pcm16-wav2raw pcm8-to-pcm16 tw5a-dump \
ddb2b00d582b miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 523
diff changeset
3 tw5a-to-gsmx
281
3816ba89a5a0 gsmrec-dump: use libgsmfr2 instead of old libgsm
Mychaela Falconia <falcon@freecalypso.org>
parents: 232
diff changeset
4 LIBEFR= ../libgsmefr/libgsmefr.a ../libgsmfr2/libgsmfr2.a
14
69ed7af28473 gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 12
diff changeset
5 LIBTEST=../libtest/libtest.a
453
19f1aa01ea10 new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents: 281
diff changeset
6
19f1aa01ea10 new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents: 281
diff changeset
7 include ../config.defs
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 all: ${PROGS}
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
469
7c50864deaff amrts-pcm8-compact program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
11 amrts-pcm8-compact: amrts-pcm8-compact.c
7c50864deaff amrts-pcm8-compact program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
12 ${CC} ${CFLAGS} -o $@ $@.c
7c50864deaff amrts-pcm8-compact program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 460
diff changeset
13
46
edd2e20e7090 gsmrec-dump: decode EFR frames
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
14 gsmrec-dump: gsmrec-dump.o ${LIBTEST} ${LIBEFR}
281
3816ba89a5a0 gsmrec-dump: use libgsmfr2 instead of old libgsm
Mychaela Falconia <falcon@freecalypso.org>
parents: 232
diff changeset
15 ${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR}
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16
520
785b302992f0 miscutil: new program gsmx-to-tw5a
Mychaela Falconia <falcon@freecalypso.org>
parents: 469
diff changeset
17 gsmx-to-tw5a: gsmx-to-tw5a.o ${LIBTEST}
785b302992f0 miscutil: new program gsmx-to-tw5a
Mychaela Falconia <falcon@freecalypso.org>
parents: 469
diff changeset
18 ${CC} ${CFLAGS} -o $@ gsmx-to-tw5a.o ${LIBTEST}
785b302992f0 miscutil: new program gsmx-to-tw5a
Mychaela Falconia <falcon@freecalypso.org>
parents: 469
diff changeset
19
221
6555dae764b3 miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents: 220
diff changeset
20 pcm16-check13: pcm16-check13.c
6555dae764b3 miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents: 220
diff changeset
21 ${CC} ${CFLAGS} -o $@ $@.c
6555dae764b3 miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents: 220
diff changeset
22
141
c1dc094f0821 pcm16-raw2wav utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 103
diff changeset
23 pcm16-raw2wav: raw2wav.o ${LIBTEST}
c1dc094f0821 pcm16-raw2wav utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 103
diff changeset
24 ${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST}
c1dc094f0821 pcm16-raw2wav utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 103
diff changeset
25
219
dc52c3857bf7 miscutil: new program pcm16-to-alaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 184
diff changeset
26 pcm16-to-alaw: pcm16-to-alaw.c
dc52c3857bf7 miscutil: new program pcm16-to-alaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 184
diff changeset
27 ${CC} ${CFLAGS} -o $@ $@.c
dc52c3857bf7 miscutil: new program pcm16-to-alaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 184
diff changeset
28
220
c4c45148cde1 miscutil: new program pcm16-to-ulaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 219
diff changeset
29 pcm16-to-ulaw: pcm16-to-ulaw.c
c4c45148cde1 miscutil: new program pcm16-to-ulaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 219
diff changeset
30 ${CC} ${CFLAGS} -o $@ $@.c
c4c45148cde1 miscutil: new program pcm16-to-ulaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 219
diff changeset
31
142
578fdedf4327 pcm16-wav2raw utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 141
diff changeset
32 pcm16-wav2raw: wav2raw.o ${LIBTEST}
578fdedf4327 pcm16-wav2raw utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 141
diff changeset
33 ${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST}
578fdedf4327 pcm16-wav2raw utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 141
diff changeset
34
232
8710c94df334 miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents: 221
diff changeset
35 pcm8-to-pcm16: pcm8-to-pcm16.c
8710c94df334 miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents: 221
diff changeset
36 ${CC} ${CFLAGS} -o $@ $@.c
8710c94df334 miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents: 221
diff changeset
37
523
86d4ec69b36c miscutil: new program tw5a-dump
Mychaela Falconia <falcon@freecalypso.org>
parents: 520
diff changeset
38 tw5a-dump: tw5a-dump.o ${LIBTEST} ${LIBEFR}
86d4ec69b36c miscutil: new program tw5a-dump
Mychaela Falconia <falcon@freecalypso.org>
parents: 520
diff changeset
39 ${CC} ${CFLAGS} -o $@ tw5a-dump.o ${LIBTEST} ${LIBEFR}
86d4ec69b36c miscutil: new program tw5a-dump
Mychaela Falconia <falcon@freecalypso.org>
parents: 520
diff changeset
40
524
ddb2b00d582b miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 523
diff changeset
41 tw5a-to-gsmx: tw5a-to-gsmx.o ${LIBTEST}
ddb2b00d582b miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 523
diff changeset
42 ${CC} ${CFLAGS} -o $@ tw5a-to-gsmx.o ${LIBTEST}
ddb2b00d582b miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents: 523
diff changeset
43
17
68a7e86c9868 frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 14
diff changeset
44 install:
460
cb1d1ea7f2c5 new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents: 453
diff changeset
45 mkdir -p ${DESTDIR}${bindir}
cb1d1ea7f2c5 new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents: 453
diff changeset
46 install -c ${PROGS} ${DESTDIR}${bindir}
17
68a7e86c9868 frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 14
diff changeset
47
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
48 clean:
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49 rm -f *.o *.out ${PROGS}