homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:12Jeff.Pursellsetrecipients: + Jeff.Pursell
2010年04月04日 17:57:12Jeff.Pursellsetmessageid: <1270403832.09.0.135814575217.issue8311@psf.upfronthosting.co.za>
2010年04月04日 17:57:10Jeff.Purselllinkissue8311 messages
2010年04月04日 17:57:10Jeff.Pursellcreate

AltStyle によって変換されたページ (->オリジナル) /