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 ewoudenberg
Recipients
Date 2006-05-07.23:23:39
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Dear Python Patch Center:

This is my first Python patch submission. Apologies for
any errors of protocol. I have been using these
submitted changes for several years and have even given
it out (I mentioned it a few years back on a python
mailing list.) I am confident to the best of my ability
that these changes are solid.

Unfortunately I don't have the capability of rebuilding
the documentation, but the changes to the documentation
are outlined below.

Please do not hesitate to contact me for further
information or assistance. I would be honored to have
these changes become part of some Python revision, be
it 2.5 or something further in the future.

Thank you,
Eric Woudenberg
eaw@connact.com

From my version of the wave.py file:

These changes allow .wav files containing u-law and
a-law data to be read and written. The user visible
changes are:

1) After a .wav file containing mu-law or a-law data is
opened for reading, a call to getcomptype() returns
'ULAW' (resp. 'ALAW') and a call to getcompname()
returns 'CCITT G.711 u-law' (resp. 'CCITT G.711 a-law').

2) After a wave object is created for writing,
setcomptype() can be called with the arguments ('ULAW',
'CCITT G.711 u-law') (resp. 'ALAW', 'CCITT G.711
a-law'). The second argument (text description) is ignored.

3) The comptype 'PCM' is now a synonym for 'NONE'.
PCM-containing wave files will return 'PCM' instead of
'NONE' for their comptype.
   
Note that this module does not do any u-law or a-law
format conversion to PCM, it simply allows users to
read or write u-law/a-law data from/to .wav files that
have conforming headers. For audio conversion of PCM
data to or from u-law, use the audioop module.
History
Date User Action Args
2007-08-23 15:48:45adminlinkissue1483545 messages
2007-08-23 15:48:45admincreate