A Class D amplifier circuit performs audio signal processing and other
signal processing by using a bang-bang controller and a noise-shaping
feedback network. The bang-bang controller triggers generation of a
rectangular waveform that corresponds to changes in a control signal
derived from an input analog signal, with the generation of the
rectangular waveform being based on a comparison of the control signal
with another signal derived from hysteresis associated with an output of a
comparator. A filter filters the rectangular waveform to obtain an
amplified output analog signal substantially representative of the input
analog signal. The feedback network noise shapes the output analog signal,
and feeds back the noise-shaped output analog signal and substracts it
from the input analog signal.