Automatic Gain Control Real Time