updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / python-pyspeex / float-to-short.patch
bloba5f355d6de97c195c7b7ae6a133c0dcd5185e137
1 --- speex.pyx 2011-02-18 13:52:44.810198522 +0100
2 +++ speex.pyx-new 2011-02-18 13:52:36.046865189 +0100
3 @@ -522,7 +522,7 @@
5 # Copy from float to short (16 bits) for output
6 for i from 0 <= i < self.encFramesPerBlock:
7 - decShorts1[i] = decFloats1[i]
8 + decShorts1[i] = int(decFloats1[i])
10 self.decPhase = 0 # back to awaiting LSB of count header
11 self.decNumBytes = 0