A method for a switched-mode class D amplifier having a high attenuation of unwanted residual ripple signals without requiring an output filter and without any reduction of stability margins, characterized in that It comprises the following steps: providing a switched-mode amplifier comprising a loop filter, a pre-modulation block comprising a first and a second capacitor, a PWM block, an oscillator configured to generate rectangular clock signals to the premodulated block and to generate triangular clock signals to the PWM block, an output driver, and a power stage providing output for a load; applying uniform pulse-width modulation to analogue sinusoidal audio output signals of the loop filter, wherein sample and hold function of the pare-modulation block enables low distortion by eliminating residual ripple at multiples of clock rates wherein the pre-modulation block takes a sample of the audio output signals of the loop filter comprising undesired ripples during a first half cycle of a system clock and holding this sample during a second half cycle of the system clock, such that the first capacitor tracks the audio output signals of the loop filter for the first half cycle of the system clock while the second capacitor holds and is connected to an output of the pre-modulation block and during the second half cycle of the system clock the first capacitor holds and is connected to the output of the pre-modulation block and the second capacitor tracks the audio output signals of the loop filter thus enabling sample-and hold operation of the pre-modulation block at double rate of the system clock; applying double sampling by the pre-modulation block in conjunction with the PWM block, wherein a triangular wave signal is used for the PWM modulation; and attenuating residual clock signals without an output filter by transmission zero notches. providing a switched-mode amplifier comprising a loop filter, a pre-modulation block comprising a first and a second capacitor, a PWM block, an oscillator configured to generate rectangular clock signals to the premodulated block and to generate triangular clock signals to the PWM block, an output driver, and a power stage providing output for a load; applying uniform pulse-width modulation to analogue sinusoidal audio output signals of the loop filter, wherein sample and hold function of the pare-modulation block enables low distortion by eliminating residual ripple at multiples of clock rates wherein the pre-modulation block takes a sample of the audio output signals of the loop filter comprising undesired ripples during a first half cycle of a system clock and holding this sample during a second half cycle of the system clock, such that the first capacitor tracks the audio output signals of the loop filter for the first half cycle of the system clock while the second capacitor holds and is connected to an output of the pre-modulation block and during the second half cycle of the system clock the first capacitor holds and is connected to the output of the pre-modulation block and the second capacitor tracks the audio output signals of the loop filter thus enabling sample-and hold operation of the pre-modulation block at double rate of the system clock; applying double sampling by the pre-modulation block in conjunction with the PWM block, wherein a triangular wave signal is used for the PWM modulation; and attenuating residual clock signals without an output filter by transmission zero notches.