Switching audio output between jack and HDMI on RetroPie
RetroPie is a great multi-emulator project for the Raspberry Pi, but I noticed that its auto-detect for which audio device to use seems a bit erratic. I’ve speakers plugged into the 3.5mm jack, as the HDMI cable runs to a speaker-less monitor, and usually (but not always) RetroPie defaulted to squirting sound out the HDMI port. There’s two ways of fixing this. Firstly, you can change the audio output for the current session (i.e. until you reboot it) by issuing …