On Sun, 2012-08-12 at 13:07 +0000, Fons Adriaensen wrote: > [4] > > You can't apply a soundcard mixer gain change at some exact > point in a sample stream. So you can't change the master > gain and change your internal scaling to compensate at > exactly the same time. There will always be a glitch. That's the important point. And because look ahead for a realtime livestream is impossible without a time machine, you need to lower the level with a guess about the needed headroom, before you increase the other level, assumed we are near at margin of full scale.