Automatic gain control is a feedback regulator circuit in an amplifier or amplifier chain, whose purpose is to maintain an adequate signal amplitude at its output, despite the variation of the input signal amplitude.
A compressor is an electronic sound processor designed to reduce the dynamic range of the signal without making its presence too noticeable. This task is performed by reducing the gain of the system, when the signal exceeds a certain threshold.