I've got a weird problem right now. I updated everything a couple of weeks ago (sudo apt update, upgrade etc.) and after that I had issues with the sound output to my tv via hdmi. I managed to fix it eventually by going to /boot/config.txt and setting hdmi_drive=2, but only for audio from chromium. I still can't get audio from vlc. Weirdly though, if I connect a bluetooth audio output, I can get vlc audio there. In the process of working out the original problem a I downloaded a few things, I think they were related to pulseaudio and bluez(?)
I'm sure there's some setting I just need to adjust but I've no idea where to look, either in vlc or on the pi. Can someone point me in the right direction?