Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d64b48

Browse files
committed
Disable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and I
don't think that's what we want. There was some brief discussion of this somewhere but I don't recall where.
1 parent 75a6e67 commit 7d64b48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/audioop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static int ulaw_table[256] = {
111111
120, 112, 104, 96, 88, 80, 72, 64,
112112
56, 48, 40, 32, 24, 16, 8, 0 };
113113

114-
#define ZEROTRAP /* turn on the trap as per the MIL-STD */
114+
/* #define ZEROTRAP /* turn on the trap as per the MIL-STD */
115115
#define BIAS 0x84 /* define the add-in bias for 16 bit samples */
116116
#define CLIP 32635
117117

0 commit comments

Comments
 (0)