Message102346
Here's my fix. The left file is the original and the right file is my version. Perhaps someone should check this patch on a big endian machine to make sure there are no issues there. I do not anticipate any issues.
416c416
< nframes = len(data) // (self._sampwidth * self._nchannels)
---
> nframes = len(data) // self._nchannels
427c427
< self._datawritten = self._datawritten + len(data)
---
> self._datawritten = self._datawritten + len(data) * self._sampwidth
463c463
< self._nframes = initlength / (self._nchannels * self._sampwidth)
---
> self._nframes = initlength // self._nchannels |
|
Date |
User |
Action |
Args |
2010-04-04 17:57:12 | Jeff.Pursell | set | recipients:
+ Jeff.Pursell |
2010-04-04 17:57:12 | Jeff.Pursell | set | messageid: <1270403832.09.0.135814575217.issue8311@psf.upfronthosting.co.za> |
2010-04-04 17:57:10 | Jeff.Pursell | link | issue8311 messages |
2010-04-04 17:57:10 | Jeff.Pursell | create | |
|