]> granicus.if.org Git - python/commitdiff
Disable the ZEROTRAP code -- this turns a 0 byte into a 2 byte and I
authorGuido van Rossum <guido@python.org>
Tue, 2 May 2000 21:18:13 +0000 (21:18 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 2 May 2000 21:18:13 +0000 (21:18 +0000)
don't think that's what we want.  There was some brief discussion
of this somewhere but I don't recall where.

Modules/audioop.c

index 702ca90a5bfb0712ab2c225e4849cce06fc9c463..c6c8fef05752150236908020d3275257c0738fbb 100644 (file)
@@ -111,7 +111,7 @@ static int ulaw_table[256] = {
        120,    112,    104,     96,     88,     80,     72,     64,
        56,     48,     40,     32,     24,     16,      8,      0 };
 
-#define ZEROTRAP    /* turn on the trap as per the MIL-STD */
+/* #define ZEROTRAP    /* turn on the trap as per the MIL-STD */
 #define BIAS 0x84   /* define the add-in bias for 16 bit samples */
 #define CLIP 32635