A class D amplifier is provided with a frequency characteristic compensation
function.
An automatic frequency characteristic compensation circuit is disposed at an input
unit of a class D amplifier. The frequency characteristic of the class D amplifier
is automatically measured while a load is connected, using a test signal having
a predetermined frequency and signal level. An inverse characteristic is computed
for compensating the frequency characteristic to the design frequency characteristic,
and the inverse characteristic is set in the automatic frequency characteristic
compensation circuit.