[MP1-4838] Volume control no longer functions properly when changing audio device (1 Viewer)

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,434
    10,256
    France
    France France
    Country flag
    So build failed on my side :

    Code:
    Severity    Code    Description    Project    File    Line    Suppression State
    Error        The "EnsureBindingRedirects" task failed unexpectedly.
    System.IO.FileNotFoundException: Could not find file 'D:\MediaPortal-1\mediaportal\Core\app.config'.
    File name: 'D:\MediaPortal-1\mediaportal\Core\app.config'
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
       at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
       at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
       at System.Xml.XmlTextReaderImpl.FinishInitUriString()
       at System.Xml.XmlTextReaderImpl..ctor(String uriStr, XmlReaderSettings settings, XmlParserContext context, XmlResolver uriResolver)
       at System.Xml.XmlReaderSettings.CreateReader(String inputUri, XmlParserContext inputContext)
       at System.Xml.XmlReader.Create(String inputUri, XmlReaderSettings settings, XmlParserContext inputContext)
       at System.Xml.Linq.XDocument.Load(String uri, LoadOptions options)
       at Roxel.BuildTasks.EnsureBindingRedirects.LoadAppConfig(String appConfigPath)
       at Roxel.BuildTasks.EnsureBindingRedirects.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()    Core          
    Error    CS0246    The type or namespace name 'AudioSwitcher' could not be found (are you missing a using directive or an assembly reference?)    MediaPortal    D:\MediaPortal-1\mediaportal\MediaPortal.Application\MediaPortal.cs    62    Active
    Error    CS0246    The type or namespace name 'CoreAudioController' could not be found (are you missing a using directive or an assembly reference?)    MediaPortal    D:\MediaPortal-1\mediaportal\MediaPortal.Application\MediaPortal.cs    224    Active
    Error    CS0246    The type or namespace name 'CoreAudioController' could not be found (are you missing a using directive or an assembly reference?)    MediaPortal    D:\MediaPortal-1\mediaportal\MediaPortal.Application\MediaPortal.cs    224    Active
    Error    CS0246    The type or namespace name 'CoreAudioController' could not be found (are you missing a using directive or an assembly reference?)    MediaPortal    D:\MediaPortal-1\mediaportal\MediaPortal.Application\MediaPortal.cs    3075    Active
    Error    CS0246    The type or namespace name 'CoreAudioDevice' could not be found (are you missing a using directive or an assembly reference?)    MediaPortal    D:\MediaPortal-1\mediaportal\MediaPortal.Application\MediaPortal.cs    3080    Active
    Error    CS0103    The name 'AudioSwitcher' does not exist in the current context    MediaPortal    D:\MediaPortal-1\mediaportal\MediaPortal.Application\MediaPortal.cs    3081    Active
    Error    CS0103    The name 'AudioSwitcher' does not exist in the current context    MediaPortal    D:\MediaPortal-1\mediaportal\MediaPortal.Application\MediaPortal.cs    3082    Active
    And attached is the NSIS and postbuild that is needed (should be ok :) )
     

    Attachments

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    Includes all of the work but in one commit for easy viewing :) , in the old branch ReSharper went a bit crazy (reformated a few files) so reverted it to master then manually merged some of the changes.
    Here's a list for changelog:

    - Included AudioSwitcher API for device and volume control
    - Volume control now listens on same device as Audio Renderer, handled in filter events as this looked like like the best place for a catch all
    - On a audio device disconnected state we check if it was indeed our Audio Renderer device where we started playback with and if so stop if user has setting "stopOnAudioRenderLoss"
    - Enumeration of audio devices in Mediaportal application -> Mediaportal.cs updated to use AudioSwitcher
    - Reworked mixer and volume handler completely and made it much simpler and faster (async + less hops in code), optionally allows for further expansion but think it's a good start

    Did leave some stuff in mixer and volume handler for legacy purposes in case some external plugins calls specific parts, for sure needs thorough testing as this is a pretty important part of Mediaportal.
    So maybe for 1.17 unless you guys think we have enough time to test it properly :)
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,434
    10,256
    France
    France France
    Country flag
    Includes all of the work but in one commit for easy viewing :) , in the old branch ReSharper went a bit crazy (reformated a few files) so reverted it to master then manually merged some of the changes.
    Here's a list for changelog:

    - Included AudioSwitcher API for device and volume control
    - Volume control now listens on same device as Audio Renderer, handled in filter events as this looked like like the best place for a catch all
    - On a audio device disconnected state we check if it was indeed our Audio Renderer device where we started playback with and if so stop if user has setting "stopOnAudioRenderLoss"
    - Enumeration of audio devices in Mediaportal application -> Mediaportal.cs updated to use AudioSwitcher
    - Reworked mixer and volume handler completely and made it much simpler and faster (async + less hops in code), optionally allows for further expansion but think it's a good start

    Did leave some stuff in mixer and volume handler for legacy purposes in case some external plugins calls specific parts, for sure needs thorough testing as this is pretty big part of Mediaportal.
    So maybe for 1.17 unless you guys think we have enough time to test it properly :)
    Nice nice work :)
     

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    Should be there now, did have some issues with NuGet trying to update all projects even though I only selected Mediaportal.Application / Mediaportal.Core.
    So didn't commit those for that reason as it could mess up some things :)
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,434
    10,256
    France
    France France
    Country flag
    The branch failed to compile so missing something else :p
     

    Rick164

    Super User
  • Team MediaPortal
  • Super User
  • January 7, 2006
    1,335
    1,005
    Netherlands Netherlands
    Country flag
    Probably missing app.conf, in Mediaportal.Application by any chance?
    Can commit all changes but it added app.conf in other un-related projects when I added the nuget package :)
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    C Hauppauge HVR-1265 -- does it work with MP1? MediaPortal 1 Talk 1
    ajs MP2Web - MP1 compatibility MediaPortal 1 20
    T MadVR + LAV Filters, Perfect in MPC-BE, Bad in MP1 MediaPortal 1 Talk 13
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    framug [solved] Some changes/fix in MP1 configuration client and server Submit: code patches (MediaPortal/TV-Server/etc.) 14
    S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
    C Streaming/transcoding MP2 vs MP1? General 4
    ajs [fixed] 5015: Improving the MP1 installer, providing nicer GUI :) MediaPortal 1 138
    C Streaming to clients over Wifi. MP1 or MP2? Newcomers Forum 0
    S Shortcuts MP1 My Recorded & TV Guide General 10
    azzuro [WiP] MP1-4999 - Big changes with many related change at once by Sebastiii MediaPortal 1 12
    ajs [Help Us!] MP1 X64 Version MediaPortal 1 20
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    wizard123 [solved] MP1 Build help MediaPortal 1 21
    ajs [News] MediaPortal 1 - 1.24 Released! News and Announcements 3
    CyberSimian [fixed] MP1-4990 : Improve horizontal scrolling in the EPG MediaPortal 1 10
    azzuro [WiP] MP1-5019: Replace MySQL with MariaDB MediaPortal 1 40
    catalpa Umsteiger von MP1: Schwierigkeiten Allgemeines Support- und Diskussionsforum 17
    CyberSimian [solved] MP1-4976 Built-in skin variables for current date MediaPortal 1 8
    rbo [solved] Umsteiger MP1 zu MP2 Allgemeines Support- und Diskussionsforum 67
    azzuro [Info] MP2 TVE inside MP1 repo MediaPortal 2 12
    G MP1 TV Server "failed to upgrade the database" using MS Sql Server Installation, configuration support 3
    lisag Can I get MP1 to open in the Recorded TV screen? MediaPortal 1 Talk 2
    M MP1 stops responding after Starting Plugins General Support 14
    R Problem with MP1 and WifiRemote Skins and Plugins Installer (MPEI) 8
    Similar threads

























    Top Bottom