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

Sebastiii

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

    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
    Country flag
    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
    Country flag
    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
    Country flag
    Last edited:

    Rick164

    MP Donator
  • Premium Supporter
  • January 7, 2006
    1,335
    1,005
    Home Country
    Netherlands Netherlands
    Country flag
    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

    Similar threads

    Good work guys!
    Good work guys!
    We are proud to present MediaPortal 2.2.1 After the release of MediaPortal 2.2 Final the team focussed on improving usability and...
    Replies
    1
    Views
    3K
    • Locked
    It would be great if you then posted a comment in your bug thread. I will mark the thread as "fixed", assuming that the change has made (or will make) its way into the master.
    It would be great if you then posted a comment in your bug thread. I will mark the thread as "fixed", assuming that the change has...
    Hi, i've noticed, that MP2 crashed to desktop, if you try to play an audiofile after changing WASAPI exclusiv audio device...
    Replies
    24
    Views
    3K
    • Sticky
    And now it works, including remote button on and off. Thanks @azzuro it was me using the wrong version it seems. Attachment in first post might want to be deleted incase other noobs like me make same mistake maybe :)
    And now it works, including remote button on and off. Thanks @azzuro it was me using the wrong version it seems. Attachment in...
    For amblight / Hyperion users made something new that works a bit better with madVR image capture and doesn't use AtmoLight, this...
    Replies
    31
    Views
    7K
    We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on the implementation of new features and some fundamental changes in the core of MediaPortal 2. As a result, we proudly present the next major release of MediaPortal 2 in version 2.2. MediaPortal 2.2 is a...
    We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on...
    We are proud to present MediaPortal 2.2 Pre-Release It has been some time since last release, but we were intensively working on...
    Replies
    0
    Views
    3K
    Thanks for the reply. I prefer not to touch anything. I leave things as they are. Because I use the PC both with headphones and with the Home Cinema system. I don't wish there were any problems if I change the audio renderer. Also because if in MediaPortal Audio Renderer I change the settings of the exclusive mode I should remember to...
    Thanks for the reply. I prefer not to touch anything. I leave things as they are. Because I use the PC both with headphones and...
    Introduction This allows you to easily change your active Windows audio (playback) device using a context menu which you can show...
    Replies
    83
    Views
    24K
    Top Bottom