Changes of Revision 5
shorten.patch
Changed
x
1
2
---
3
- src/fixio.c | 9 +++++----
4
- 1 file changed, 5 insertions(+), 4 deletions(-)
5
+ src/fixio.c | 9 +++++----
6
+ utils/mkbshift.c | 4 ++--
7
+ 2 files changed, 7 insertions(+), 6 deletions(-)
8
9
--- a/src/fixio.c
10
+++ b/src/fixio.c
11
12
extern int WriteWaveFile;
13
14
#define CAPMAXSCHAR(x) ((x > 127) ? 127 : x)
15
+--- a/utils/mkbshift.c
16
++++ b/utils/mkbshift.c
17
+@@ -46,7 +46,7 @@
18
+ tabSlinear2ulaw(sample) = shift;
19
+
20
+ /* print this out as a lookup table */
21
+- fprintf(fout, "char ulaw_maxshift%d = {", USIZE);
22
++ fprintf(fout, "signed int ulaw_maxshift%d = {", USIZE);
23
+ for(i = 0; i < USIZE - 1; i++)
24
+ fprintf(fout, "%d,", tabi);
25
+ fprintf(fout, "%d};\n\n", tabUSIZE - 1);
26
+@@ -79,7 +79,7 @@
27
+ error_exit("identity maping failed for shift: %d\tindex: %d\n",shift,i);
28
+
29
+ /* print out the ulaw_inward lookup table */
30
+- fprintf(fout, "schar ulaw_inward%d%d = {\n", SHIFTSIZE, USIZE);
31
++ fprintf(fout, "signed int ulaw_inward%d%d = {\n", SHIFTSIZE, USIZE);
32
+ for(shift = 0; shift < SHIFTSIZE; shift++) {
33
+ fprintf(fout, "{");
34
+ for(i = 0; i < USIZE - 1; i++)
35