Forum

Full Version: Analog audio for .flac/mp3 and hdmi audio for .mkv/avi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I was wondering if it was possible to make a script that changes audio output according to the file type that is being played.
The idea behind this is having my tv connected via hdmi and my audio system connected to the analog output.
If I play music I don't want my TV to be turned on and because of that HDMI is useless for it, I want it to play through the analog output.
Does anybody know anyway to control the output? I don't know where to start searching for it and I couldn't find anything similar.
I think you need to patch XBMC in order to do this, I don't know how good your are with c++?
Probably is possible in python too.
I have never used c++ and I'm quite new to Python, but I still would like to try making it.
I know how to make the script autostart in XBMC (I have recently made a fairly simple script) it's just that I don't know how to control the audio output with commands.
What's the command that's called when i switch from analog to hdmi audio output within xbmc?
Reference URL's