FreeCalypso > hg > gsm-codec-lib
annotate 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 (2 months ago) |
parents | a81ce3cd38a7 |
children |
rev | line source |
---|---|
497
a1599eaf51f9
top Makefile: add libgsmhr1
Mychaela Falconia <falcon@freecalypso.org>
parents:
461
diff
changeset
|
1 SUBDIR_LIBPROD= libgsmefr libgsmfr2 libgsmhr1 libtwamr |
516
5353d7652f65
top Makefile: add hrutil
Mychaela Falconia <falcon@freecalypso.org>
parents:
497
diff
changeset
|
2 SUBDIR_UTILS= amrconv amrefr amrtest efrtest frtest hrutil miscutil |
448
a2065e7d68bc
top Makefile: move libtwamr to SUBDIR_LIBPROD
Mychaela Falconia <falcon@freecalypso.org>
parents:
443
diff
changeset
|
3 SUBDIR_INT= dev libtest |
21
b82ac486c1d7
top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
4 |
b82ac486c1d7
top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
5 SUBDIR= ${SUBDIR_LIBPROD} ${SUBDIR_UTILS} ${SUBDIR_INT} |
453
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
6 SUBDIR_INST= ${SUBDIR_LIBPROD} ${SUBDIR_UTILS} |
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
7 DESTDIR= |
9
4229247843c0
top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
4229247843c0
top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 all: ${SUBDIR} |
4229247843c0
top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
184
b092a510141e
tree reorg: move gsm-amr2efr & gsm-efr2amr to amrconv subdir
Mychaela Falconia <falcon@freecalypso.org>
parents:
47
diff
changeset
|
11 amrconv: libtest |
438
1bf1bbcef763
amrefr: implement amrefr-encode-r utility
Mychaela Falconia <falcon@freecalypso.org>
parents:
434
diff
changeset
|
12 amrefr: libgsmefr libtest libtwamr |
443
526a7f0e027d
amrtest: implement twamr-encode
Mychaela Falconia <falcon@freecalypso.org>
parents:
438
diff
changeset
|
13 amrtest: libtest libtwamr |
47
89945a3b576e
gsmefr-rec2etsi test program added
Mychaela Falconia <falcon@freecalypso.org>
parents:
46
diff
changeset
|
14 efrtest: libgsmefr libtest |
291
da533081fb95
top Makefile: no more libgsmfrp
Mychaela Falconia <falcon@freecalypso.org>
parents:
280
diff
changeset
|
15 frtest: libgsmfr2 libtest |
558
a81ce3cd38a7
top Makefile: hrutil depends on libtest
Mychaela Falconia <falcon@freecalypso.org>
parents:
516
diff
changeset
|
16 hrutil: libgsmhr1 libtest |
280
356d9675701d
top Makefile: add libgsmfr2 dependencies
Mychaela Falconia <falcon@freecalypso.org>
parents:
257
diff
changeset
|
17 miscutil: libgsmefr libgsmfr2 libtest |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
9
diff
changeset
|
18 |
453
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
19 ${SUBDIR}: FRC config.defs |
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
20 cd $@; ${MAKE} ${MFLAGS} |
9
4229247843c0
top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 |
453
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
22 config.defs: |
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
23 @echo 'You must run ./configure before make' |
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
24 @false |
21
b82ac486c1d7
top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
25 |
453
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
26 install: FRC |
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
27 for i in ${SUBDIR_INST}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
448
diff
changeset
|
28 DESTDIR=${DESTDIR} install); done |
21
b82ac486c1d7
top Makefile: add install-lib and install-utils
Mychaela Falconia <falcon@freecalypso.org>
parents:
15
diff
changeset
|
29 |
461
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
30 # The following two subset install targets are only for experts; |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
31 # if you are not sure why they are needed, you *don't* need them! |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
32 |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
33 install-lib: FRC |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
34 for i in ${SUBDIR_LIBPROD}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
35 DESTDIR=${DESTDIR} install); done |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
36 |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
37 install-utils: FRC |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
38 for i in ${SUBDIR_UTILS}; do (cd $$i; ${MAKE} ${MFLAGS} \ |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
39 DESTDIR=${DESTDIR} install); done |
a53225b44ea5
further refinement of build system:
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
40 |
9
4229247843c0
top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 clean: FRC |
4229247843c0
top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 rm -f a.out core errs |
4229247843c0
top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${MFLAGS} clean); done |
4229247843c0
top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 |
4229247843c0
top Makefile: initial version
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 FRC: |