An all-digital class-D audio amplifier and method of digitizing an analog
signal comprises a pulse-width modulation (PWM) wave generator for
generating a PWM wave; an interpolator for receiving an input audio
signal, up-sample the input audio signal; and down-sample the input audio
signal to a PWM wave switching frequency; an audio speaker for
broadcasting an amplified version of the input audio signal; a pair of
MOSFETs driven by the PWM wave and the input supply voltage, wherein the
pair of MOSFETs transmit the amplified version of the input audio signal
to the audio speaker; a natural-sampling and pre-distortion circuit
adapted to (i) generate a pre-distorted natural-sampling frequency point
for the PWM wave switching frequency, and (ii) account for digitized
power supply ripples for an input supply voltage used to drive the audio
speaker; and an analog-to-digital converter (ADC) adapted to digitize the
power supply ripples or distortion.