Ok, I've done more reading into this and I've tried some quick code. I wouldn't be able to use some of the code from the FLAC package (as it would make the codec too large/bulky in my opinion) and this will make it more difficult to implement, but it certainly looks like it could be done.
I was thinking of having a setting file (in the usual directory with the other settings files) that would allow ReplayGain to be activated (default would be deactivated).
Which type of replaygain would you like to see, track gain or album gain? Track gain seems to make more sense, but perhaps I could make this an option also?
Good question.. I'm not even sure myself. This is how I'm streaming it to the soundbridge I have (wav file)
flc wav * *
$flac$ -dcs --apply-replaygain-which-is-not-lossless=a --force-raw-format --endian=little --sign=signed --skip=$START$ --until=$END$ $FILE$
I found this on the slimdevices forums. But I can't find anything anywhere that says what the =a is doing. not even the man page for flac!?
EDIT - Actually, I found it.. I've been using album gain. here is a link:
http://www.hydrogenaudio.org/forums/ind ... 7293&st=11