annotate amrdiff/readone-common.c @ 12:db5772dac3c3

ringing: generate WAV decodings of FR&EFR ringing signals for playback testing and subjective quality evaluation
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Apr 2024 19:28:20 +0000
parents 75ba83624a29
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 /*
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 * The function in this module is common between readone-amr and readone-efr.
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 */
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 #include <stdio.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 #include <stdint.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 #include <stdlib.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 #include <string.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 #include <strings.h>
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 emit_frame244(bits)
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 uint8_t *bits;
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13 {
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 unsigned n;
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 for (n = 0; n < 244; n++) {
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 printf("%u,", bits[n]);
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 if (n % 40 == 39 || n == 243)
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 putchar('\n');
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 }
75ba83624a29 readone-amr program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 }