[SciPy-dev] patch for io/wavfile.py

Jason Newton nevion at gmail.com
Mon Aug 11 18:03:01 EDT 2008


Hi,

I was unfortunate to discover a bug in io.wavfile, it assumes long to be 
4 bytes on all architectures and on my amd64 box I was getting errors 
reading simple wavs until I made the changes contained in the patch.  
Basically just swapped out int for long in all the struct pack and 
unpack calls where it made sense to.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wavfile.diff
Type: text/x-patch
Size: 2062 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20080811/9ca9563e/attachment.bin>


More information about the SciPy-Dev mailing list