QUOTE
fewtch wrote:
[...] my compressed audio files don't clip, as I make them all myself.
So do I - but clipping is inevitable when you're dealing with lossy encoders. If the PCM track ripped from a CD peaks at, say, 98%, it's very likely that the encoder will drive the peak beyond full-scale, meaning the audio would be clipped upon decoding. How severe this effect is depends on the encoder used, and on how compressed the music is: "Normal" music which peaks just below or at full-scale but isn't compressed mostly results in peaks just above 100% when encoded to a lossy format; the average compressed CD often reaches ca. 110%, and really insanely compressed music that already has thousands of consecutive clipped samples in the PCM track can easily go as high as 160% or more. Garf once posted a nice example, a Red Hot Chili Peppers CD which provoked a >400% peak when encoded to Ogg Vorbis.
Typical peak values for a non-compressed CD when encoded to lossy (album gain is -2,28dB, the album is from 1984):
0,979675
1,006165
1,038514
0,852779
1,019227
0,907590
0,994690
1,024476
1,016236
1,054262
Compressed 2002 album (album gain: -7.28 dB):
1,091372
1,082827
1,063173
1,088015
1,065798
1,125187
1,140629
1,105228
1,126347
1,100955
1,126713
1,073916
1,119083
1,129154
1,105289
Insanely compressed album (album gain: -12.28 dB):
1,208686
1,239814
1,081301
1,109317
1,201178
1,070803
1,145512
1,105411
1,157781
1,172063
0,894711
1,213569
(These are MPC --quality 7 files. The third album peaked at ~140% when encoded to --quality 5, and at ~160% when encoded to Vorbis -q 2.)
Note that you can only avoid this kind of clipping on playback if you use ReplayGain. It's no problem to playback the audio without clipping in either Winamp or foobar2000, but depending on which format you're using, there are limitations in Winamp. For example, if you use MPC, your only option to prevent clipping is to have the whole file scaled down to the point where it no longer clips. On music with insane peaks (like Garf's RHCP CD, whose volume had to be reduced
below the 89dB RG level to get rid of all clipped samples

), this can cause significant volume differences between files (even though you're using ReplayGain). With foobar, you have the option of limiting all peaks that
would clip, so you have clipping-free audio with no volume differences caused by scaling.
Another example where foobar's way of handling clipping is superior to Winamp's. Look at these values:
CODE
Title | Album |
Level- | (Peak+)| Level- | (Peak+)|
Adjustment| Peak (Adjst)|Adjustment| Peak (Adjst)| Filename
----------+--------------+----------+--------------+---------------------------
... | | | |
+9.10 dB | 17573 (50100)| +2.27 dB | 31168 (40477)| 02 - Is There Anybody Out There.mpc
... | | | |
+14.09 dB | 22911 (116022)| +2.27 dB | 31168 (40477)| 11 - Stop.mpc
... | | | |
+4.74 dB | 33301 (57472)| +3.42 dB | 33301 (49369)| 01 - So Far Away.mpc
[EDIT] I have no idea why the columns aren't aligned correctly, it worked all right in a text editor using a fixed-width font...
[/EDIT]The third file already clips, but still needs considerable amplification to match the 89dB level. With Winamp, there would be no way to get these 89dB without introducing serious clipping - and with clipping prevention enabled in the MPC plugin, the volume of the file would even be
reduced (because, as I said, it already clips as it is). If played between other files, this one would be too quiet. With foobar, you'd just enable the Advanced Limiter, turn off the ReplayGain clipping prevention, and the file would be played back at normal volume, without clipping. (The other two files in the table are similar examples, except that they don't clip as they are. And you don't want to know how the second one sounds if played back without any kind of clipping prevention/limiting.

)
At the risk of sounding like a zealot

: Like it or not, this actually
is a practical advantage, not just a theoretical one.
CU
Dominic
[EDIT] OK Canar, this time you were faster
[/EDIT]