QUOTE(jcoalson @ Oct 23 2002 - 07:43 AM)
Yeah, I found the vorbisgain source a little later.
VorbisGain has been written so that adding other codecs should be fairly simple (e.g., most Vorbis specific stuff is located in vorbis.c).
QUOTE
There are slight differences between that and replaygain in gain_analysis.c; vorbisgain has some comment that Frank did some improvements, but replaygain has #ifdef KLEMM in places with differences, so I'm not sure which is newer/better.
The MPC replaygain uses slightly different algorithms to calculate the gain, yes. VorbisGain uses the "original" ReplayGain algorithm (as implemented by Glen Sawyer), while Frank Klemm has done some tweaks on it. I don't know which is best, if any.
QUOTE
The main difference I see is that vorbisgain is doing the decoding in-process, so to add FLAC to that one requires a little bit more work on the make system too, whereas replaygain decodes with an external binary. I guess FLAC could go in either one, or I could just copy one and integrate it in the FLAC distro.
I doubt that. I think Frank "gets away" with callling an external binary (isn't that less portable, btw?) because MPC already stores peak values in the mpc file (AFAIK). In Vorbis that isn't the case, which would mean you'd loose the peaks by using an external binary (unless it supports an unclipped floating point file format).
Correction: it uses "--scale 0.5"...

No OggDec supports that, AFAIK.
QUOTE
As for use in the players, that's step 2. Although it seems to me this is another thing that does not belong in an input plugin; the values ought to be able to be passed out to the dsp section of the player.
Winamp3 supports this, AFAIK. Not Winamp2.