mirror of https://github.com/python/cpython
The _comp_data() function never worked, it contained a reference to
undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint)
This commit is contained in:
parent
f8fd11d039
commit
5c071fab8f
|
@ -811,7 +811,7 @@ class Aifc_write:
|
||||||
import cl
|
import cl
|
||||||
dum = self._comp.SetParam(cl.FRAME_BUFFER_SIZE, len(data))
|
dum = self._comp.SetParam(cl.FRAME_BUFFER_SIZE, len(data))
|
||||||
dum = self._comp.SetParam(cl.COMPRESSED_BUFFER_SIZE, len(data))
|
dum = self._comp.SetParam(cl.COMPRESSED_BUFFER_SIZE, len(data))
|
||||||
return self._comp.Compress(nframes, data)
|
return self._comp.Compress(self._nframes, data)
|
||||||
|
|
||||||
def _lin2ulaw(self, data):
|
def _lin2ulaw(self, data):
|
||||||
import audioop
|
import audioop
|
||||||
|
|
Loading…
Reference in New Issue