I hooked up my old (~25y) stereo to an RPi via AUX in. The RPi has MPD and a pulseaudio sink to play audio. And it can be controlled via Home Assistant.
But the feature I like most is that it turns on/off the stereo via an infrared LED. It detects sound and silence on the pulse output and sends the proper IR command. A small thing, but it still makes me happy whenever it does its work in the background.