The disclosure presents a method and an
amplifier system for minimizing variation in an acoustical
signal caused by variation in
gain of an
amplifier, comprising a battery for providing a supply
voltage to the
amplifier, a
digital signal processor for providing the acoustical
signal to the amplifier, a controller unit receiving an enablement
signal when the supply
voltage is in an offset mode, and based on the enablement signal requesting a measured
voltage during a time period, and a first analog-to-
digital converter configured for measuring the supply voltage to the amplifier when receiving the request from the controller unit or the first analog-to-
digital converter is configured for measuring the supply voltage to the amplifier continuously, and where variations in the measured voltage relates to variations in the supply voltage during the time period. Furthermore, the controller unit is configured to predict offset
modes (i.e. changes) in the supply voltage based on the enablement signals and a fitting of the measured voltages, and wherein the controller unit is configured to generate a compensating signal based on the fitting and transmit the compensating signal to the
digital signal processor, the
digital signal processor is then configured to minimize variation in the acoustical signal at the output of the amplifier by compensating the variation in
gain of the amplifier based on the compensating signal.