Audio Renderer Changer (1 Viewer)

Thor2605

MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    AW: Audio Renderer Changer

    Hi ettore.b

    The regkey changing works as follows:
    You have to export your Reg-Tree directly through the registry or (if you use ffdshow) you could export it directly in decoder setup!
    This exported regkey has to be inserted by double clicking into the cell of the column regkey.

    Customizing is not possible. There the audiorenderer is shown when you change it. This is not a real OSD because process-plugins cannot have a OSD and if I'm programming an own one every skin designer has to support!
    But I'm working on a better OSD!

    Good luck!
     

    RobinE

    Portal Member
    December 30, 2007
    38
    2
    Home Country
    Netherlands Netherlands
    Great plugin.:D

    Is it also posible to use it with online video's? For me it not working now.
     

    Thor2605

    MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    AW: Audio Renderer Changer

    New Version available in first post!

    Changelog:
    - LAV-Audio Codec now works!
    - Bugfix: If Audio-Codec for DVD was another than in other sections the codec couldn't be found anymore in graph!

    Please test and report!
     

    Anthrax

    Portal Pro
    February 15, 2007
    157
    48
    pretty much in the center
    Home Country
    Germany Germany
    AW: Audio Renderer Changer

    Hello Thor2605 and everybody,

    first off my chest: nice plugin, simple, clean, focussed on a single purpose and just works as advertised ;-) :D

    One thing I'd like to suggest though would be the use of configurable MediaPortal Actions... (I'd even contribute on the code if your time is limited)
    This would make it easier for everyone with a (MCE) Remote to assign a button for your plugin.

    Just a few things would be needed in order to incorporate this functionality:

    1. override OnAction() and check for the user configured Action:
    Code:
    [pseudo code]
    public override void OnAction(MediaPortal.GUI.Library.Action action){
         if (action == Settings.ConfiguredAction){
              SwitchAudioRenderer(); //your switching magic here ;-)
         }else{
              base.OnAction(action);
         }
    }

    2. Just add a ComboBox containing the values from the MediaPortal.GUI.Library.Action enumeration and let the user pick one

    3. we are done ;-)

    The Action enumeration can be found here: WebSVN - MediaPortal - Rev 28022 - /trunk/mediaportal/Core/guilib/Action.cs

    There are a lot of actions in there and everybody should be able to pick one which wouldn't be used otherwise like:
    ACTION_TOGGLE_MUSIC_GAP = 9886​
    which I use for the MySleepTimer...

    please let me know if you even consider thinking about it and if I could help you out with anything.

    cheers mates,
    Anthrax

    PS: I've done the same in the MySleepTimer plugin if you you want to have look: http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/MySleepTimer/MySleepTimer/
    (but remember this was my first plugin so don't expect any best practices in there!!!) ;-)
     

    Thor2605

    MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    AW: Audio Renderer Changer

    That could be!

    I don't support svn-versions of MePo!
     

    Thor2605

    MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    AW: Audio Renderer Changer

    No sorry!

    I don't want to publish it on this state of deployment!

    But if I can find time I will upload a testversion for you...
     

    ravenrocks

    Portal Pro
    October 11, 2007
    351
    96
    Allright, that would be much appreciated since thats the only plugin that makes me revert to 1.2beta non-svn.
     

    Thor2605

    MP Donator
  • Premium Supporter
  • April 2, 2009
    1,640
    184
    Home Country
    Germany Germany
    AW: Audio Renderer Changer

    Sorry but it seems that I actually can't change anything!

    [assembly: CompatibleVersion("1.1.7.0")]
    [assembly: UsesSubsystem("MP.Plugins")]
    [assembly: UsesSubsystem("MP.Config")]
    [assembly: UsesSubsystem("MP.Filters")]

    This is required for the plugin and it seems that the svn actually has changings in one/more of these subsytems!
    If I change now all others can't load their plugin anymore...
     

    Users who are viewing this thread

    Top Bottom