- January 21, 2009
- 736
- 104
- Home Country
- Germany
Hi!
Function:
With this tool is it possible to switch settings of audio decoder or sound device with your remote.
Due to that either to use an AV Receiver for AC3 decoding or to downmix the stream to stereo.
Another option is to switch the "Default Direct Sound Device" maybe HDMI and onboard Sound.
Working Codecs are:
AC3Filter
ffdshow
Background:
What il looked for, was a solution to use normaly my TV for sound output and sometimes use the AV Receiver with my homecinema system.
As a workaround i developed a script to switch between Passthrough and Downmix with AC3Filter with my remote.
System:
My htpc is connected to TV with a DVI cable.
Sound is connected from onboard analog output to TV.
SPDIF is connected to AV Receiver.
Audio renderer is AC3Filter.
Solution:
For audio code switching with AC3Filter for example:
-Export the default settings for AC3Filter configured to passthrough sound to SPDIF into a *.reg file.
-Repeat the first step with changed settings in AC3Filter configured to downmix sound into another *.reg file
For audio device switching:
-Export the current audio device located under "HKCU\Software\Microsoft\Multimedia\Sound Mapper" into *.reg file
-Change the current audio device with Control Panel "Sounds and Audio" to the next sound device
-Export again the current audio device like in step 1 into *.reg file.
-Configure the *.ini file with your *.reg files
-Place all files in a folder together.
-To execute the script with your remote, create a shortcut in start menu
-Assign a shortcut key to execute (maybe STRG + SHIFT + j).
-Configure a button on your remote with the shortcut.
-It's important to send the key to windows and not to Mediaportal.
In iMon Manager create a user command with the key.
It is possible to use more than one Soundswitch instance independent.
-One for audio codec switching
-One for audio device switching
If you want ot switch codec and audio device at same time, you can combine the *.reg files together.
Done
Location of registry entries:
Settings of AC3Filter in registry: HKCU/Software/AC3Filter/Preset/Default
The Default Direct Sound Device in registry (Only Windows XP): HKCU\Software\Microsoft\Multimedia\Sound Mapper
The script is written with AutoIT and can used for all codecs wich store settings in registry.
Changelog:
V1.0 Release
V1.1 Settings stored in *.ini file. Every codec can be used.
V1.2 Unrestricted amount of settings can be switched, message text and window size can be configured.
V1.3 Added feature to restart Mediaportal when settings change
V1.4 Fix issue regarding restart function
V1.5 Adding Fix to activate Mediaportal after switching due to lost focus.
Function:
With this tool is it possible to switch settings of audio decoder or sound device with your remote.
Due to that either to use an AV Receiver for AC3 decoding or to downmix the stream to stereo.
Another option is to switch the "Default Direct Sound Device" maybe HDMI and onboard Sound.
Working Codecs are:
AC3Filter
ffdshow
Background:
What il looked for, was a solution to use normaly my TV for sound output and sometimes use the AV Receiver with my homecinema system.
As a workaround i developed a script to switch between Passthrough and Downmix with AC3Filter with my remote.
System:
My htpc is connected to TV with a DVI cable.
Sound is connected from onboard analog output to TV.
SPDIF is connected to AV Receiver.
Audio renderer is AC3Filter.
Solution:
For audio code switching with AC3Filter for example:
-Export the default settings for AC3Filter configured to passthrough sound to SPDIF into a *.reg file.
-Repeat the first step with changed settings in AC3Filter configured to downmix sound into another *.reg file
For audio device switching:
-Export the current audio device located under "HKCU\Software\Microsoft\Multimedia\Sound Mapper" into *.reg file
-Change the current audio device with Control Panel "Sounds and Audio" to the next sound device
-Export again the current audio device like in step 1 into *.reg file.
-Configure the *.ini file with your *.reg files
-Place all files in a folder together.
-To execute the script with your remote, create a shortcut in start menu
-Assign a shortcut key to execute (maybe STRG + SHIFT + j).
-Configure a button on your remote with the shortcut.
-It's important to send the key to windows and not to Mediaportal.
In iMon Manager create a user command with the key.
It is possible to use more than one Soundswitch instance independent.
-One for audio codec switching
-One for audio device switching
If you want ot switch codec and audio device at same time, you can combine the *.reg files together.
Done
Location of registry entries:
Settings of AC3Filter in registry: HKCU/Software/AC3Filter/Preset/Default
The Default Direct Sound Device in registry (Only Windows XP): HKCU\Software\Microsoft\Multimedia\Sound Mapper
The script is written with AutoIT and can used for all codecs wich store settings in registry.
Changelog:
V1.0 Release
V1.1 Settings stored in *.ini file. Every codec can be used.
V1.2 Unrestricted amount of settings can be switched, message text and window size can be configured.
V1.3 Added feature to restart Mediaportal when settings change
V1.4 Fix issue regarding restart function
V1.5 Adding Fix to activate Mediaportal after switching due to lost focus.