With a PWM system, for example ... If you want to go old school, think about how to do pulse density with a 555 chip and post it on Hackaday.io.
input data into pulse-width modulated (PWM) outputs. The stereo PWM outputs can driver off-chip or on-chip P/N MOSFET switches for power-efficient Class D amplifier configuration.