2014-05-13, 01:10
Hey guys,
I use both ALSA and PulseAudio on my Ubuntu 14.04/Gotham 13 htpc (steam BPM 'just works' with PA) and am start/stopping PA as required, generally xbmc only uses ALSA but occasionally I will run xbmc with PA running (because of Steam bpm's 'return to desktop' option) and PA is detected and used by xbmc with no user input. The thing is that next time I run xbmc without PA running xbmc automatically selects the first audio device, which results in no sound as the 2nd device is what is connected. After manually changing xbmc to use the connected ALSA device everything works great. On a fresh install of a late OE 4 beta the first device is selected aswell.
So does any one know of a way I can have xbmc use a specific ALSA device when not using PA after running xbmc with PA? Can I achieve this via a a default device in ~/.asoundrc? I could probably use a script to check if pa is running and what device xbmc is using, but that seems kinda clunky. Also I could maybe change my cabling so its connected to the first device, but this isn't a method that could work across multiple machines. Or can I disable all unused devices at a system level?
Any suggestions are appreciated.
I use both ALSA and PulseAudio on my Ubuntu 14.04/Gotham 13 htpc (steam BPM 'just works' with PA) and am start/stopping PA as required, generally xbmc only uses ALSA but occasionally I will run xbmc with PA running (because of Steam bpm's 'return to desktop' option) and PA is detected and used by xbmc with no user input. The thing is that next time I run xbmc without PA running xbmc automatically selects the first audio device, which results in no sound as the 2nd device is what is connected. After manually changing xbmc to use the connected ALSA device everything works great. On a fresh install of a late OE 4 beta the first device is selected aswell.
So does any one know of a way I can have xbmc use a specific ALSA device when not using PA after running xbmc with PA? Can I achieve this via a a default device in ~/.asoundrc? I could probably use a script to check if pa is running and what device xbmc is using, but that seems kinda clunky. Also I could maybe change my cabling so its connected to the first device, but this isn't a method that could work across multiple machines. Or can I disable all unused devices at a system level?
Any suggestions are appreciated.