forked from jiaaro/pydub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This solves the issue where 8-bit audio is inconsistently treated as unsigned and signed integers. The audioop library only supports signed integers, so this fix converts to and from signed integers where necessary. It removes places where the values are treated like unsigned as these partial fixes are no longer necessary. This includes special handling in the rms and set_sample_width methods of the AudioSegment class. It changes the codec used for reading from 8-bit wav files to pcm_u8 from pcm_s8 since pcm_u8 is the only valid codec for 8-bit wav files.
- Loading branch information
1 parent
9e292e0
commit 3818779
Showing
1 changed file
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters