Commit 5930695
authored
mp3, vorbis: Remove sample clamping. (#434)
Remove the [-1.0, 1.0] sample clamping from MP3 and Vorbis decoders
to align with FFmpeg behavior and enable accurate peak detection
for audio analysis tools.
Background:
- FFmpeg (the de facto standard) does not clamp decoder output
- The AAC decoder in Symphonia already does not clamp
- Clamping prevents accurate peak detection for audio analysis
tools that need to detect clipping (samples exceeding 0 dBFS)
Fixes: #433
Co-authored-by: m_igashi <@M_Igashi>1 parent 16c641f commit 5930695
File tree
2 files changed
+2
-6
lines changed- symphonia-bundle-mp3/src
- symphonia-codec-vorbis/src
2 files changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 134 | | |
139 | 135 | | |
140 | 136 | | |
| |||
0 commit comments