Message102346
| Author |
Jeff.Pursell |
| Recipients |
Jeff.Pursell |
| Date |
2010年04月04日.17:57:09 |
| SpamBayes Score |
5.2428913e-06 |
| Marked as misclassified |
No |
| Message-id |
<1270403832.09.0.135814575217.issue8311@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| 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 |
|