[issue2847] Remove cl usage from aifc
report at bugs.python.org
Mon Jun 2 00:41:02 CEST 2008
Quentin Gallet-Gilles <qgallet at gmail.com> added the comment:
The attached patch removes all cl references from the aifc module and
updates it to make it usable in 3.0. It also supports more compression
types because audioop has been enhanced throughout the years (i.e.
support for alaw encoding since 2.5). The changes are the following :
- replace strings with bytes for frames read from an aiff/aifc file.
- replace / by // to have integer division back
- added ulaw (as an alternative of ULAW) and alaw/ALAW compression
because audioop supports them (I've tested them successfully, using the
samples from this URL :
- removed all tests when trying to import audioop : they can't fail anymore.
- a bit of PEP-8 cleanup
I'm not an AIFF/AIFC expert, so criticism is welcome!
Added file: http://bugs.python.org/file10499/aifc_3.0.patch
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list