Posts: 41
Joined: May 2010
Reputation:
0
Hi,
Is it possible to change audio source (audiooutput/audiodevice) with a shortcut to directly select (or, better, toggle) one ?
Thanks.
Posts: 202
Joined: May 2009
Reputation:
0
Look for an app called QuickSoundSwitch. That may help you out
Posts: 1,544
Joined: Jul 2007
Reputation:
27
gabbott
Team-Kodi Member
Posts: 1,544
I run the linux version of xbmc but I've mapped a button on my remote to toggle audio tracks, of course linux uses lirc, not sure what the windows equivalent would be.
Posts: 1,736
Joined: Oct 2008
Reputation:
14
Then why are you asking in the "XBMC for Windows Specific Support" section?
Posts: 41
Joined: May 2010
Reputation:
0
Ok for that, I've already try autohotkey solution and other macros, but it's not very stylish (using "WinActivate, XBMC" is better, but we have to run autohotkey just for this need). It's why I'd prefered a native XBMC solution.
So, we can't define shorcut for all elements in XBMC.
Thanks.
Posts: 1
Joined: Oct 2009
Reputation:
0
The best I managed so far is to add
<b>System.Exec ("rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0")</b>
To the keymap.xml.
This is not elegant but does the work.
The change output dialog pops up when you prss the "b" key and you can change the audio device.
The problem is that XBMC disappears until you close the dialog, a little annoying, but something I can live with.
You can even add the following python script that automates the choosing of the device (You will have to add command line to say how much arrow down is needed or create a script for each audio device)
import os
from SendKeys import SendKeys
import time
p = os.popen("rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,0")
time.sleep( 2 )
SendKeys('{DOWN}')
SendKeys('%s')
time.sleep( 1 )
SendKeys('{ENTER}')
I prefer to choose the device "by hand" but it is just me ...
Gaby