diff options
author | Guido van Rossum <guido@python.org> | 1995-01-02 19:30:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-01-02 19:30:30 (GMT) |
commit | 3bbc62e9c25d4c006cd21d6b1314ccf0ba211382 (patch) | |
tree | 0b1a6d87c3bd250a62235f9df6ed9fffddbbabae /Modules/audioop.c | |
parent | 437a0e60baa6eabc2c853bee7ce1543481db8ca7 (diff) | |
download | cpython-3bbc62e9c25d4c006cd21d6b1314ccf0ba211382.zip cpython-3bbc62e9c25d4c006cd21d6b1314ccf0ba211382.tar.gz cpython-3bbc62e9c25d4c006cd21d6b1314ccf0ba211382.tar.bz2 |
Another bulky set of minor changes.
Note addition of gethostbyaddr() and improved repr() for sockets,
renaming of md5.md5() to md5.new(), and fixing of leaks in threads.
Diffstat (limited to 'Modules/audioop.c')
-rw-r--r-- | Modules/audioop.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c index e3297a3..22e309d 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -136,9 +136,6 @@ int sample; } /* End of code taken from sox */ -/* ADPCM-3 step variation table */ -static float newstep[5] = { 0.8, 0.9, 1.0, 1.75, 1.75 }; - /* Intel ADPCM step variation table */ static int indexTable[16] = { -1, -1, -1, -1, 2, 4, 6, 8, @@ -603,7 +600,7 @@ audioop_cross(self, args) signed char *cp; int len, size, val; int i; - int cross, prevval, ncross; + int prevval, ncross; if ( !getargs(args, "(s#i)", &cp, &len, &size) ) return 0; @@ -1117,7 +1114,7 @@ audioop_adpcm2lin(self, args) { signed char *cp; signed char *ncp; - int len, size, val, valpred, step, delta, index, sign, vpdiff; + int len, size, valpred, step, delta, index, sign, vpdiff; object *rv, *str, *state; int i, inputbuffer, bufferstep; |