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.

classification
Title: audioop - alaw encoding/decoding added, code updated
Type: Stage:
Components: Extension Modules Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: anthonybaxter Nosy List: anthonybaxter, fastflo, georg.brandl, larsimmisch
Priority: normal Keywords: patch

Created on 2005-07-01 16:04 by larsimmisch, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
audioop.patch larsimmisch, 2005-07-01 16:04
Messages (5)
msg48545 - (view) Author: Lars Immisch (larsimmisch) Date: 2005-07-01 16:04
This patch adds a-LAW encoding to audioop and replaces[1] the old 
u-LAW encoding/decoding code with the current code from sox.

If audioop has an ulaw codec, it should also have an alaw codec. 
Besides, shtoom wants/needs it.

Tests and documentation are updated with this patch too.

The patch is a unified diff against CVS that can be applied in one 
piece frrom the root of the python tree.

Beyond the cursory tests in the unittests, I have done 
successful tests with real-life data.

Possible issues: the code from sox uses int16_t.

[1] Rationale for the replacement of existing code: the alaw code 
would have been different in style from the ulaw code and attribution 
of the code would have been less clear.

msg48546 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2005-08-12 21:52
Logged In: YES 
user_id=29957

I'll look at this shortly.
msg48547 - (view) Author: Florian Schmidt (fastflo) Date: 2006-01-28 01:25
Logged In: YES 
user_id=182876

me and the company i'm working for are very interested in
this patch. as a german telecomunication service provider we
have to deal with alaw all the time... (headerless data)
the patch works for us, would be great if it would come into
one of the next release's...
msg48548 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-03-17 21:07
Logged In: YES 
user_id=849994

Patch looks good and has docs and tests.
msg48549 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2006-03-20 05:28
Logged In: YES 
user_id=29957

Patch has been applied to the trunk. Thanks for the patch,
and sorry about the delay in applying it.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42151
2005-07-01 16:04:49larsimmischcreate