Windows sets newly created audio adapter as default


  1. Posts : 5
    Windows 10
       #1

    Windows sets newly created audio adapter as default


    Hello, have an winapi application which creates an audio adapter, but the problem is that whenever adapter is created it is set as default audio adapter and I don't want that.

    Does anyone know how to avoid newly created device being set as default by changing inf file(Or maybe any other way)?

    P.S I've checked the inf file which application is using and

    https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

    this value is not set. Does it mean that in every application this value is defaultly set? Or is there any other way to make newly created audio adapter default? Or is there any way to disable this?
    And if it became default behaviour is there any documentation that would verify it? Thank you.
      My Computer


  2. Posts : 1,310
    Windows 10
       #2

    well i know alot of applications that when creating their own virtual drivers default status to main audio never change ex : NVIDIA Display drivers (HDMI Audio) , Any Video Converter & Desktop Video Capture , it could be either these save original audio device status and set it back after installation or that installations wont affect default status anyway , so maybe you can check with the HDMI Inf where you can compare differences with your app's .

    Also despite Microsoft claims you can't programatically change default audio device (Source Here) there had been few posts by programmers that its possible to change it using trick codes (Source Here)

    You can use an application of the above trick code called Audio Switcher Hotkey to use a hotkey to quickly alter default audio device as a way around till you get things sorted .

    Finally I have been through Group Policy settings once trying to deny installation of devices because windows update kept force installing an updated buggy driver so all I could find achievable in your case is to block certain devices by ID to accept any updated drivers (Computer Configuration > Administrative templates > System > Device Installation > Device Installation Restrictions) , so maybe you can add the virtual ID of that device that nags you to never accept updates hence never take over defaultness .
    Last edited by nIGHTmAYOR; 17 Oct 2017 at 19:00.
      My Computer


  3. Posts : 5
    Windows 10
    Thread Starter
       #3

    P.S

    I also found some other people with simillar issue.
    Last edited by jajaja; 18 Oct 2017 at 02:56.
      My Computer


  4. Posts : 5
    Windows 10
    Thread Starter
       #4

    nIGHTmAYOR said:
    well i know alot of applications that when creating their own virtual drivers default status to main audio never change ex : NVIDIA Display drivers (HDMI Audio) , Any Video Converter & Desktop Video Capture , it could be either these save original audio device status and set it back after installation or that installations wont affect default status anyway , so maybe you can check with the HDMI Inf where you can compare differences with your app's .

    Also despite Microsoft claims you can't programatically change default audio device (Source Here) there had been few posts by programmers that its possible to change it using trick codes (Source Here)

    You can use an application of the above trick code called Audio Switcher Hotkey to use a hotkey to quickly alter default audio device as a way around till you get things sorted .

    Finally I have been through Group Policy settings once trying to deny installation of devices because windows update kept force installing an updated buggy driver so all I could find achievable in your case is to block certain devices by ID to accept any updated drivers (Computer Configuration > Administrative templates > System > Device Installation > Device Installation Restrictions) , so maybe you can add the virtual ID of that device that nags you to never accept updates hence never take over defaultness .
    Thank you so much for reply :). But how can I get the HDMI Inf to compare it to mine?
      My Computer


  5. Posts : 1,310
    Windows 10
       #5

    Download any driver from Here
    Then after extraction check : "C:\GForce\DisplayDriver\[Driver Version]\HDAudio\nvhda.inf" for anything related to your case .
    I just didn't quite figure if you are the developer of application and want to fix it or just a normal user of application , which brings us to the question , why don't you just set your audio card back as default after the other app install and that is it ?
      My Computer


  6. Posts : 5
    Windows 10
    Thread Starter
       #6

    I'm a developer and I want to prohibit setting default audio adapter.

    I installed what you suggested but there is no folder with name C:\GForce but I've noticed that after installation some folders where modified in C:\Windows\System32\DriverStore\FileRepository.

    I've checked all the folders and infs and I listed here:

    https://pastebin.com/zqEey58b
    https://pastebin.com/6BTBV2Ne
    https://pastebin.com/uTMP1gWE

    But I could not found any important differences. I also could not found any indication of why would this device not be set as default and my device would be. Thanks again.
      My Computer


  7. Posts : 1,310
    Windows 10
       #7

    nIGHTmAYOR said:
    Also despite Microsoft claims you can't programatically change default audio device (Source Here) there had been few posts by programmers that its possible to change it using trick codes (Source Here)
    Then this is your path not the other . This is a programming question though , programming forums maybe of better help .
      My Computer


  8. Posts : 5
    Windows 10
    Thread Starter
       #8

    Does it mean that windows sets newly created audio devices as default automatically?
    Last edited by jajaja; 19 Oct 2017 at 02:09.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:13.
Find Us




Windows 10 Forums