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

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Here the log :)

    Code:
    Severity    Code    Description    Project    File    Line    Suppression State
    Error        The type or namespace name 'AudioSwitcher' could not be found (are you missing a using directive or an assembly reference?)    Core    D:\MediaPortal-1\mediaportal\Core\Player\VolumeHandler.cs    26   
    Error        The type or namespace name 'AudioSwitcher' could not be found (are you missing a using directive or an assembly reference?)    Core    D:\MediaPortal-1\mediaportal\Core\Player\VolumeHandler.cs    27   
    Error        The type or namespace name 'CoreAudioController' could not be found (are you missing a using directive or an assembly reference?)    Core    D:\MediaPortal-1\mediaportal\Core\Player\VolumeHandler.cs    46   
    Error        The type or namespace name 'AudioSwitcher' could not be found (are you missing a using directive or an assembly reference?)    Core    D:\MediaPortal-1\mediaportal\Core\Mixer\Mixer.cs    25   
    Error        The type or namespace name 'AudioSwitcher' could not be found (are you missing a using directive or an assembly reference?)    Core    D:\MediaPortal-1\mediaportal\Core\Mixer\Mixer.cs    26   
    Error        The type or namespace name 'AudioSwitcher' could not be found (are you missing a using directive or an assembly reference?)    Core    D:\MediaPortal-1\mediaportal\Core\Mixer\Mixer.cs    27   
    Error        The type or namespace name 'CoreAudioController' could not be found (are you missing a using directive or an assembly reference?)    Core    D:\MediaPortal-1\mediaportal\Core\Mixer\Mixer.cs    217   
    Error        The type or namespace name 'CoreAudioDevice' could not be found (are you missing a using directive or an assembly reference?)    Core    D:\MediaPortal-1\mediaportal\Core\Mixer\Mixer.cs    218   
    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    222    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    222    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    3112    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    3117    Active
    Error    CS0103    The name 'AudioSwitcher' does not exist in the current context    MediaPortal    D:\MediaPortal-1\mediaportal\MediaPortal.Application\MediaPortal.cs    3118    Active
    Error    CS0103    The name 'AudioSwitcher' does not exist in the current context    MediaPortal    D:\MediaPortal-1\mediaportal\MediaPortal.Application\MediaPortal.cs    3119    Active
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    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 :)

    No clue lol :p
    The dll are present in package so don't know why it failed, i think remember that i already seen this because of the version of dll NET3.5 vs NET4.0 but it oes to NET4.0 dll so i don't know lol
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    It could also need a restore nuget packages run from within Visual Studio :)
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Trying to find good example but it's:

    - Either happens during build or manually:

    Right click solution -> Restore NuGet packages
     

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Last edited:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Since we still run into issues with BCL (build bot doesn't like it), decided to go the NAudio route which was surprisingly easy to get working.
    Upsides are:

    - No BCL needed for NET40 builds (less deps)
    - Maintained and used by mayor companies
    - One .dll to include: "NAudio.dll"
    - Packed with features for later use:

    https://github.com/naudio/NAudio/blob/master/README.md

    So a lot of extra features in library, thanks @Stéphane Lenclud for suggesting this one :)
    Will push to clean branch in a sec which will hopefully solve our build problems completely.

    // Update

    Pushed to re-created branch:

    https://github.com/RickDB/MediaPortal-1/tree/MP1-4838-Rework_volume_control_management
     
    Last edited:

    Users who are viewing this thread

    Top Bottom