LarryHastings
Mar 19 2007, 10:42
I play my FLACs over the network directly from a Samba server. Occasionally, the server or the network gets overloaded, to the point that fb2k is starved for playback data. When that happens, the music stops momentarily. Once enough data gets through again, playback resumes. That's not the problem.
The problem is: when the music resumes it's generally louder than it was. I'm guessing this is because my FLACs have ReplayGain, and something in the decoder is getting reset after the network outage and resumption.
Using fb2k 0.9.4.2,
larry
Dynamic
Mar 20 2007, 13:34
Perhaps you could test this to prove it, perhaps by making a test FLAC that needs to be made MUCH louder by replaygain instead of quieter.
For example:
1. make a copy a FLAC file of yours and rename it to testcopy.flac (this way you don't make permanent changes to a file you want)
2. use fb2k to enqueue the file and right click/Edit Replaygain to set both Track and Album Gain values to -40 dB for example and update the file tags.
3. Convert... the file while applying the ReplayGain adjustment into any format you like that supports tagging, calling it testquiet.flac or similar. If you choose a high bitdepth (e.g. 24-bit), you should increase the bitrate quite a lot and might help make it more likely to stall over the network to test your theory.
4. Add testquiet.flac to your playlist and scan that one track as a single album. Update the file tags. The Replaygain results should equal the sum of +40 dB and the original Track Gain figure (usually negative) in the file before you copied it, so if the original was -9.2 dB, the Track Gain and Album Gain in testquiet.flac will now be +30.8 dB (Replaygain peak values around 0.03 would be common) for a testquiet.flac created this way.
5. Copy testquiet.flac to your samba server and play it over the network. It should now be much louder, as loud as the original, though you might well detect background hiss if you used a 16-bit format. Partway through, if you have had no interruptions to the music, try disconnecting the network cable from your computer to force an interruption. Assuming it resumes playing after you reconnect the cable, you should find that it plays still at the loud volume like the original if fb2k works OK. If not, it will suddenly become very quiet indeed, demonstrating your assertion in an unmistakable way that is pretty much immune to pschological distortion caused by the simple contrast from the silence making it seem extra-loud. To make absolutely sure, you could repeat-play the same track and should then notice that it suddently becomes full-loudness when it starts again from the beginning.