soundsourcemp3 is clamping > 2.5 dB
Bug #1408100 reported by
Daniel Schürmann
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mixxx |
Fix Released
|
Low
|
Unassigned |
Bug Description
It turns out that soundsourcemp3 cuts up to 2.5dB of high leveled track.
The range of libmad samples is -8.0 to +7.999999996274
But it is clamped t -1 .. +1 in soundsorcemp3 to have the maximum resolution of 16 bits
The original output samples of libmad have a 32 bit resolution.
In my test, I have collected the maximum values for some tracks and they are in the range of
-343734695 .. 351910901
-1.28 .. 1.31
This mean that Mixxx just cuts 2.5 dB (flat top) of the dynamic range.
Changed in mixxx: | |
milestone: | none → 2.1 |
tags: | added: soundsource |
Changed in mixxx: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I doubt this is right, or we would have had tons of reports of problems with mp3s being badly clipped. And our scale function was copied basically from madplay, and that code also clips in a similar way.
If you can use something like mp3split to make a small, fair-use-compatible portion of an audio file that demonstrates these large numbers, that would help.