private unsafe void doAgcAndGain(AutomaticGainControl agc, float *buffer, int length) { if (this._useAgc) { agc.Process(buffer, length); } this.DoRFgain(buffer, length); }