annotate dev/Makefile @ 183:452c1d5a6268

libgsmefr BFI w/o data: emit zero output after decoder reset In real-life usage, each EFR decoder session will most likely begin with lots of BFI frames before the first real frame arrives. However, because the spec-defined home state of the decoder is speech rather than CN, our regular logic for BFI w/o data would have to feed pseudorandom noise to the decoder (in the "fixed codebook excitation pulses" part), which is silly to do at the beginning of the decoder session right out of reset. Therefore, let's check reset_flag_old, and if we are still in the reset state, simply emit zero output.
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 03 Jan 2023 00:12:18 +0000
parents 68215020852b
children 842136bbd0da
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 CC= gcc
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 CFLAGS= -O2
138
68215020852b dev: add efr-tidsp table generator program
Mychaela Falconia <falcon@freecalypso.org>
parents: 35
diff changeset
3 PROGS= efr-bit-packing efr-sid-insert efr-tidsp gsm0611-silence-fr
68215020852b dev: add efr-tidsp table generator program
Mychaela Falconia <falcon@freecalypso.org>
parents: 35
diff changeset
4 DATAOUT=efr-bit-packing.out efr-sid-insert.out efr-tidsp.out \
68215020852b dev: add efr-tidsp table generator program
Mychaela Falconia <falcon@freecalypso.org>
parents: 35
diff changeset
5 gsm0611-silence-fr.out
1
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 all: ${PROGS} ${DATAOUT}
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8
32
9639a44ae2e7 dev: efr-bit-packing helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 1
diff changeset
9 efr-bit-packing: efr-bit-packing.c
9639a44ae2e7 dev: efr-bit-packing helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 1
diff changeset
10 ${CC} ${CFLAGS} -o $@ $@.c
9639a44ae2e7 dev: efr-bit-packing helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 1
diff changeset
11
9639a44ae2e7 dev: efr-bit-packing helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 1
diff changeset
12 efr-bit-packing.out: efr-bit-packing
9639a44ae2e7 dev: efr-bit-packing helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 1
diff changeset
13 ./efr-bit-packing > $@
9639a44ae2e7 dev: efr-bit-packing helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 1
diff changeset
14
35
3b5958f28a40 dev: efr-sid-insert helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 32
diff changeset
15 efr-sid-insert: efr-sid-insert.c
3b5958f28a40 dev: efr-sid-insert helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 32
diff changeset
16 ${CC} ${CFLAGS} -o $@ $@.c
3b5958f28a40 dev: efr-sid-insert helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 32
diff changeset
17
3b5958f28a40 dev: efr-sid-insert helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 32
diff changeset
18 efr-sid-insert.out: efr-sid-insert
3b5958f28a40 dev: efr-sid-insert helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 32
diff changeset
19 ./efr-sid-insert > $@
3b5958f28a40 dev: efr-sid-insert helper program
Mychaela Falconia <falcon@freecalypso.org>
parents: 32
diff changeset
20
138
68215020852b dev: add efr-tidsp table generator program
Mychaela Falconia <falcon@freecalypso.org>
parents: 35
diff changeset
21 efr-tidsp: efr-tidsp.c
68215020852b dev: add efr-tidsp table generator program
Mychaela Falconia <falcon@freecalypso.org>
parents: 35
diff changeset
22 ${CC} ${CFLAGS} -o $@ $@.c
68215020852b dev: add efr-tidsp table generator program
Mychaela Falconia <falcon@freecalypso.org>
parents: 35
diff changeset
23
68215020852b dev: add efr-tidsp table generator program
Mychaela Falconia <falcon@freecalypso.org>
parents: 35
diff changeset
24 efr-tidsp.out: efr-tidsp
68215020852b dev: add efr-tidsp table generator program
Mychaela Falconia <falcon@freecalypso.org>
parents: 35
diff changeset
25 ./efr-tidsp > $@
68215020852b dev: add efr-tidsp table generator program
Mychaela Falconia <falcon@freecalypso.org>
parents: 35
diff changeset
26
1
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 gsm0611-silence-fr: gsm0611-silence-fr.c
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 ${CC} ${CFLAGS} -o $@ $@.c -lgsm
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 gsm0611-silence-fr.out: gsm0611-silence-fr
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 ./gsm0611-silence-fr > $@
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 clean:
6780b23654bd libgsmfrp: starting with the silence frame
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34 rm -f *.o *.out ${PROGS}