Skip to content

Add methods for lin2ulaw, ulaw2lin, lin2alaw, and alaw2lin to pyaudioop.py - #825

Open
sammygrey wants to merge 4 commits into
jiaaro:masterfrom
sammygrey:master
Open

Add methods for lin2ulaw, ulaw2lin, lin2alaw, and alaw2lin to pyaudioop.py#825
sammygrey wants to merge 4 commits into
jiaaro:masterfrom
sammygrey:master

Conversation

@sammygrey

Copy link
Copy Markdown

As described in

https://web.archive.org/web/20110719132013/http://hazelware.luggle.com/tutorials/mulawcompression.html

for the compression algorithms accordingly, the expansion algorithms are just an inverse of this

@sammygrey

Copy link
Copy Markdown
Author

Oh yeah I changed _sample_count to use int division due to an error while testing, alongside. Also a protected helper function for signing to help with the 4 functions added.

@sammygrey sammygrey changed the title Added methods for lin2ulaw, ulaw2lin, lin2alaw, and alaw2lin to pyaudioop.py Add methods for lin2ulaw, ulaw2lin, lin2alaw, and alaw2lin to pyaudioop.py Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant