2009-02-12, 01:25
Ok so here's the situation: I'm running XBMC to two different rooms - my main TV with a digital receiver and the LCD in my bedroom with some old computer speakers. I had this set up running properly so I could switch screens by hitting the Power button on my remote, and both rooms were getting their audio from a split analog connection. I just upgraded my motherboard/cpu to play 1080p and spdif. But now if I want to use digital sound (which I want for the main room) I can't get analog audio to the bedroom. I have searched everywhere for a way to do this but apparently XBMC won't do both at the same time (as far as I could find?).
I CAN change the settings in the Audio Hardware section of the Settings menu in XBMC, but I have to change the audio output from analog to digital and the default output device from iec958 to default. This plays properly in the bedroom - although as you can imagine changing these settings every time I switch to the bedroom and vice versa is a little annoying.
I thought I had solved it (although, it was a bit ugly) by creating two copies of guisettings.xml - one for digital, and one for analog sound, and then when I hit the power button on my remote to copy the proper guisettings.xml file over the guisettings.xml in ~/.xbmc. This worked, but only for a little while, but then broke - now even if I change the settings manually or overwrite the guisettings.xml file, it seems that XBMC is automatically changing the settings back when it starts.
Is there any way that I can set the audio settings from a script when I start XBMC? Or is there a way to specifically update the audio settings in guisettings.xml (and make then STAY (like i said it seems XBMC is changing them back even if i change them manually in the file))
Any ideas would be appreciated!
I CAN change the settings in the Audio Hardware section of the Settings menu in XBMC, but I have to change the audio output from analog to digital and the default output device from iec958 to default. This plays properly in the bedroom - although as you can imagine changing these settings every time I switch to the bedroom and vice versa is a little annoying.
I thought I had solved it (although, it was a bit ugly) by creating two copies of guisettings.xml - one for digital, and one for analog sound, and then when I hit the power button on my remote to copy the proper guisettings.xml file over the guisettings.xml in ~/.xbmc. This worked, but only for a little while, but then broke - now even if I change the settings manually or overwrite the guisettings.xml file, it seems that XBMC is automatically changing the settings back when it starts.
Is there any way that I can set the audio settings from a script when I start XBMC? Or is there a way to specifically update the audio settings in guisettings.xml (and make then STAY (like i said it seems XBMC is changing them back even if i change them manually in the file))
Any ideas would be appreciated!