But what with portables? They are barely able to read IDxx tags properly, so i don't expect them to apply ReplayGain tags at all (am i right?)...
Psychoacoustic filtering used in lossy codecs may bring the amplitude far beyond the original one (especially with distorted, near-to-square electric guitar sounds) and the portable players are very likely to clip anything beyond the digital range, unfortunately.
Would it be a difference (in the end) between applying ReplayGain and applying pre-encode gain? The dynamic range would be the same upon playback and players wouldn't have to implement ReplayGain at all...
The only problem might be the estimation of the pre-encode gain, the simplest solution i see is to encode twice (first encode without any pre-gain, then decode and check the amplitude, then encode with appropriate pre-gain - won't be 100% accurate, but fast).
The resulting encoded file would be 100% compatible (will play "the same" "anywhere") and there will be no dyn. range loss compared to playing with ReplayGain... (at least i think there won't be)
