FreeCalypso > hg > gsm-codec-lib
annotate frtest/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 | 80c93ef82a51 |
children | 6de564ef70d3 |
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 |
167
80c93ef82a51
gsmfr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
165
diff
changeset
|
3 PROGS= gsmfr-decode gsmfr-decode-r gsmfr-dlcap-gsmx gsmfr-dlcap-parse \ |
80c93ef82a51
gsmfr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
165
diff
changeset
|
4 gsmfr-encode gsmfr-encode-r gsmfr-hand-test gsmfr-max-out gsmfr-preproc |
14
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
5 LIBPP= ../libgsmfrp/libgsmfrp.a |
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
6 LIBTEST=../libtest/libtest.a |
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
7 LIBDEC= ${LIBTEST} ${LIBPP} |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
8 INSTBIN=/opt/freecalypso/bin |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
10 all: ${PROGS} |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
14
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
12 gsmfr-decode: decode.o ${LIBDEC} |
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
13 ${CC} ${CFLAGS} -o $@ decode.o ${LIBDEC} -lgsm |
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
14 |
153
14b627682458
gsmfr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
139
diff
changeset
|
15 gsmfr-decode-r: decode-r.o ${LIBDEC} |
14b627682458
gsmfr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
139
diff
changeset
|
16 ${CC} ${CFLAGS} -o $@ decode-r.o ${LIBDEC} -lgsm |
14b627682458
gsmfr-decode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
139
diff
changeset
|
17 |
165
ef3ea52a190f
rename gsmfr-cvt-dlcap to gsmfr-dlcap-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
155
diff
changeset
|
18 gsmfr-dlcap-gsmx: dlcap-gsmx.o tidsp.o ${LIBTEST} |
ef3ea52a190f
rename gsmfr-cvt-dlcap to gsmfr-dlcap-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
155
diff
changeset
|
19 ${CC} ${CFLAGS} -o $@ dlcap-gsmx.o tidsp.o ${LIBTEST} |
ef3ea52a190f
rename gsmfr-cvt-dlcap to gsmfr-dlcap-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
155
diff
changeset
|
20 |
167
80c93ef82a51
gsmfr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
165
diff
changeset
|
21 gsmfr-dlcap-parse: dlcap-parse.o tidsp.o ${LIBDEC} |
80c93ef82a51
gsmfr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
165
diff
changeset
|
22 ${CC} ${CFLAGS} -o $@ dlcap-parse.o tidsp.o ${LIBDEC} -lgsm |
80c93ef82a51
gsmfr-dlcap-parse utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
165
diff
changeset
|
23 |
14
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
24 gsmfr-encode: encode.o ${LIBTEST} |
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
25 ${CC} ${CFLAGS} -o $@ encode.o ${LIBTEST} -lgsm |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 |
155
9814041e8096
gsmfr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
153
diff
changeset
|
27 gsmfr-encode-r: encode-r.o ${LIBTEST} |
9814041e8096
gsmfr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
153
diff
changeset
|
28 ${CC} ${CFLAGS} -o $@ encode-r.o ${LIBTEST} -lgsm |
9814041e8096
gsmfr-encode-r utility put together
Mychaela Falconia <falcon@freecalypso.org>
parents:
153
diff
changeset
|
29 |
29
d21c68b8f16c
gsmfr-hand-test: yet another debug aid
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
30 gsmfr-hand-test: hand-test.o |
d21c68b8f16c
gsmfr-hand-test: yet another debug aid
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
31 ${CC} ${CFLAGS} -o $@ hand-test.o -lgsm |
d21c68b8f16c
gsmfr-hand-test: yet another debug aid
Mychaela Falconia <falcon@freecalypso.org>
parents:
27
diff
changeset
|
32 |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
33 gsmfr-max-out: max-out.o ${LIBDEC} |
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
34 ${CC} ${CFLAGS} -o $@ max-out.o ${LIBDEC} -lgsm |
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
35 |
24
94f18b720f1e
new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
36 gsmfr-preproc: preproc.o ${LIBDEC} |
94f18b720f1e
new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
37 ${CC} ${CFLAGS} -o $@ preproc.o ${LIBDEC} |
94f18b720f1e
new debug utility gsmfr-preproc
Mychaela Falconia <falcon@freecalypso.org>
parents:
19
diff
changeset
|
38 |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
39 install: |
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
40 mkdir -p ${INSTBIN} |
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
41 install -c ${PROGS} ${INSTBIN} |
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
42 |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 clean: |
27
896ce7f1d271
frtest: cn-debug is now gsmfr-max-out
Mychaela Falconia <falcon@freecalypso.org>
parents:
26
diff
changeset
|
44 rm -f *.o *.out ${PROGS} |