This is the very basic prototype of a digital amplifier. You have a sine source, a PWM modulator with digital ouput, an anlog filter and the analog load.
The digital output consists of two inverse digital signals dn and dp:
The analog plot compares the sine input versus the differential output voltage on the load resistor R1: