Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix inconsistent handling of 8-bit audio #439

Merged
merged 9 commits into from
Feb 6, 2020
Prev Previous commit
Next Next commit
fix test_set_channels
The test was requiring more precision than we can expect from mp3.
  • Loading branch information
GreyAlien502 committed Feb 3, 2020
commit 1599979fbb6716d34aab678e5daf8de400cede59
4 changes: 2 additions & 2 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,9 @@ def test_set_channels(self):

monomp3 = AudioSegment.from_mp3(mono.export())
self.assertWithinTolerance(len(monomp3), len(self.seg2),
percentage=0.01)
tolerance=105)

merged = monomp3.append(stereo, crossfade=100)
merged = mono.append(stereo, crossfade=100)
self.assertWithinTolerance(len(merged),
len(self.seg1) + len(self.seg2) - 100,
tolerance=1)
Expand Down