This posting is older than 6 months and can contain outdated information.
Hi.
Thanks for your answer. My solution to the problem was to create a applescript which toggle the two soundsources. Then create a new behaviour with applescript and assign that behavior to a button. In my case pressing and holding the up button on the apple remote.
In case anybody else have the same problem. Here is the script. Possibly you have to make local adjustments on it to make it work:
Create a new behaviour and paste this applescript.
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.sound"
end tell
tell application "System Events"
tell application process "System Preferences"
tell tab group 1 of window "Sound"
click radio button "Ljud ut"
if (selected of row 2 of table 1 of scroll area 1) then
set selected of row 1 of table 1 of scroll area 1 to true
set deviceselected to "Earphones"
else
set selected of row 2 of table 1 of scroll area 1 to true
set deviceselected to "SAMSUNG"
end if
end tell
end tell
end tell
tell application "System Preferences" to quit