Reply to thread

Introduction


This allows you to easily change your active Windows audio (playback) device using a context menu which you can show by mapping it to a remote key, the current remote keys mappable are:


Red

Green

Blue

Yellow

DVD menu

Subpage Up / Down


Also has a a few optional features:


- Set default playback device on startup

- LAV audio bit streaming on a per device basis (default off in settings)

- Set LAV audio delay via context menu (default off in settings)


Installation


https://www.team-mediaportal.com/extensions/audio-switcher


Usage


First select the remote key you want to use from the AudioSwitcher configuration:


[ATTACH=full]178255[/ATTACH]


[ATTACH=full]181583[/ATTACH]



Once selecting a remote key you need to make sure AudioSwitcher can use it first as Mediaportal by default reserves all special buttons (no pass-thru), it depends on the Remote you use but here's the example for the MCE remote and the Red button.


- Go to Mediaportal configuration -> Remote And Input Devices section -> Mapping , now for the No condition area select Remote Red Button as the action.




Optionally you can also map a keyboard key to the remote key like so:


[ATTACH=full]178242[/ATTACH]



Now start Mediaportal and press the remote key or keyboard key you setup in the above steps, this will bring up a new context menu menu where you can select the playback device (current one gets highlighted):


[ATTACH=full]178241[/ATTACH]


[ATTACH=full]178240[/ATTACH]




Advanced features


Bitstream settings per device


Version 1.1.0 and up optionally supports managing the LAV audio bit stream setting per device, this allows you to specifiy which codecs your device supports and updates the LAV audio bitstream config if needed.

This is also applied if a startup device is specified in AudioSwitcher.


[ATTACH=full]181578[/ATTACH] 


LAV audio delay


Version 1.1.3 and up optionally supports managing the LAV audio delay via the context menu, you will need to enable this setting like in the below example and afterwards new audio delay settings will be listed in the Audio Switcher context menu.

For negative delays you can add a minus(-) sign before the delay, it will get validated afterwards so you don''t have to worry about setting invalid ones.


[ATTACH=full]181584[/ATTACH] 



Source 


The source is located on Github:


https://github.com/RickDB/MP1-AudioSwitcher


Credits


- AudioSwitcher for making an amazing and simple to use Audio API



Top Bottom