[issue11126] Wave.py does not always write proper length in header
New submission from jtidman : wave.py does not always honor the sampwidth setting, especially on little endian machines. If sampwidth is not one and big_endian is not set, then datawritten will not be muliplied by sampwidth, causing the header to be incorrect, and the file to appear to contain less data than it chould. -- components: Library (Lib) files: patch.txt messages: 127956 nosy: jtidman priority: normal severity: normal status: open title: Wave.py does not always write proper length in header type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file20682/patch.txt ___ Python tracker <http://bugs.python.org/issue11126> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11126] Wave.py does not always write proper length in header
jtidman added the comment: Yep, your solution is better. I can provide some text files (lists of numbers) and two programs, wave2text.py and text2wav.py. These are the programs I wrote that found this issue in the first place. Add a few checks and you could run text2wave.py and then wave2text.py and verify that the results of these two steps match the original text files. I look forward to working on this module with you. Unfortunately the time frame would have to be sometime in 2011, as I am currently very busy. -- ___ Python tracker <http://bugs.python.org/issue11126> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com