annotate miscutil/Makefile @ 242:f081a6850fb5

libgsmfrp: new refined implementation The previous implementation exhibited the following defects, which are now fixed: 1) The last received valid SID was cached forever for the purpose of handling future invalid SIDs - we could have received some valid SID ages ago, then lots of speech or NO_DATA, and if we then get an invalid SID, we would resurrect the last valid SID from ancient history - a bad design. In our new design, we handle invalid SID based on the current state, much like BFI. 2) GSM 06.11 spec says clearly that after the second lost SID (received BFI=1 && TAF=1 in CN state) we need to gradually decrease the output level, rather than jump directly to emitting silence frames - we previously failed to implement such logic. 3) Per GSM 06.12 section 5.2, Xmaxc should be the same in all 4 subframes in a SID frame. What should we do if we receive an otherwise valid SID frame with different Xmaxc? Our previous approach would replicate this Xmaxc oddity in every subsequent generated CN frame, which is rather bad. In our new design, the very first CN frame (which can be seen as a transformation of the SID frame itself) retains the original 4 distinct Xmaxc, but all subsequent CN frames are based on the Xmaxc from the last subframe of the most recent SID.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 09 May 2023 05:16:31 +0000
parents 8710c94df334
children 3816ba89a5a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
221
6555dae764b3 miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents: 220
diff changeset
3 PROGS= gsmrec-dump pcm16-check13 pcm16-raw2wav pcm16-to-alaw pcm16-to-ulaw \
232
8710c94df334 miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents: 221
diff changeset
4 pcm16-wav2raw pcm8-to-pcm16
46
edd2e20e7090 gsmrec-dump: decode EFR frames
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
5 LIBEFR= ../libgsmefr/libgsmefr.a
14
69ed7af28473 gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents: 12
diff changeset
6 LIBTEST=../libtest/libtest.a
17
68a7e86c9868 frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 14
diff changeset
7 INSTBIN=/opt/freecalypso/bin
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
46
edd2e20e7090 gsmrec-dump: decode EFR frames
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
11 gsmrec-dump: gsmrec-dump.o ${LIBTEST} ${LIBEFR}
edd2e20e7090 gsmrec-dump: decode EFR frames
Mychaela Falconia <falcon@freecalypso.org>
parents: 23
diff changeset
12 ${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR} -lgsm
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
221
6555dae764b3 miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents: 220
diff changeset
14 pcm16-check13: pcm16-check13.c
6555dae764b3 miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents: 220
diff changeset
15 ${CC} ${CFLAGS} -o $@ $@.c
6555dae764b3 miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents: 220
diff changeset
16
141
c1dc094f0821 pcm16-raw2wav utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 103
diff changeset
17 pcm16-raw2wav: raw2wav.o ${LIBTEST}
c1dc094f0821 pcm16-raw2wav utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 103
diff changeset
18 ${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST}
c1dc094f0821 pcm16-raw2wav utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 103
diff changeset
19
219
dc52c3857bf7 miscutil: new program pcm16-to-alaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 184
diff changeset
20 pcm16-to-alaw: pcm16-to-alaw.c
dc52c3857bf7 miscutil: new program pcm16-to-alaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 184
diff changeset
21 ${CC} ${CFLAGS} -o $@ $@.c
dc52c3857bf7 miscutil: new program pcm16-to-alaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 184
diff changeset
22
220
c4c45148cde1 miscutil: new program pcm16-to-ulaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 219
diff changeset
23 pcm16-to-ulaw: pcm16-to-ulaw.c
c4c45148cde1 miscutil: new program pcm16-to-ulaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 219
diff changeset
24 ${CC} ${CFLAGS} -o $@ $@.c
c4c45148cde1 miscutil: new program pcm16-to-ulaw
Mychaela Falconia <falcon@freecalypso.org>
parents: 219
diff changeset
25
142
578fdedf4327 pcm16-wav2raw utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 141
diff changeset
26 pcm16-wav2raw: wav2raw.o ${LIBTEST}
578fdedf4327 pcm16-wav2raw utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 141
diff changeset
27 ${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST}
578fdedf4327 pcm16-wav2raw utility written
Mychaela Falconia <falcon@freecalypso.org>
parents: 141
diff changeset
28
232
8710c94df334 miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents: 221
diff changeset
29 pcm8-to-pcm16: pcm8-to-pcm16.c
8710c94df334 miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents: 221
diff changeset
30 ${CC} ${CFLAGS} -o $@ $@.c
8710c94df334 miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents: 221
diff changeset
31
17
68a7e86c9868 frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 14
diff changeset
32 install:
68a7e86c9868 frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 14
diff changeset
33 mkdir -p ${INSTBIN}
68a7e86c9868 frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 14
diff changeset
34 install -c ${PROGS} ${INSTBIN}
68a7e86c9868 frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents: 14
diff changeset
35
12
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 clean:
f88817a233fb gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 rm -f *.o *.out ${PROGS}