I think this shouldn't be necessary -- microphones already default their PFL to off so they are not played in headphones. If a user wants to PFL their mic to pre-listen to it with the volume all the way down so it's not in the master mix then I think they should be able to. You could accomplish this by just not changing ConstantGainCalculator.