1.    17 Oct 2017 #1
    Join Date : Oct 2017
    Posts : 5
    Windows 10

    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 ComputerSystem Spec
  2.    17 Oct 2017 #2
    Join Date : Dec 2015
    Posts : 107
    Windows 10

    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 ComputerSystem Spec
  3.    18 Oct 2017 #3
    Join Date : Oct 2017
    Posts : 5
    Windows 10
    Thread Starter

    P.S

    I also found some other people with simillar issue.
    Last edited by jajaja; 18 Oct 2017 at 02:56.
      My ComputerSystem Spec
  4.    18 Oct 2017 #4
    Join Date : Oct 2017
    Posts : 5
    Windows 10
    Thread Starter

    Quote Originally Posted by nIGHTmAYOR View Post
    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 ComputerSystem Spec
  5.    18 Oct 2017 #5
    Join Date : Dec 2015
    Posts : 107
    Windows 10

    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 ComputerSystem Spec
  6.    4 Weeks Ago #6
    Join Date : Oct 2017
    Posts : 5
    Windows 10
    Thread Starter

    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 ComputerSystem Spec
  7.    4 Weeks Ago #7
    Join Date : Dec 2015
    Posts : 107
    Windows 10

    Quote Originally Posted by nIGHTmAYOR View Post
    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 ComputerSystem Spec
  8.    4 Weeks Ago #8
    Join Date : Oct 2017
    Posts : 5
    Windows 10
    Thread Starter

    Does it mean that windows sets newly created audio devices as default automatically?
    Last edited by jajaja; 4 Weeks Ago at 02:09.
      My ComputerSystem Spec

 


Similar Threads
Thread Forum
Solved Automatically deny access of (Drives) to newly created user accounts
Hello, Firstly, hope I'm posting in the right section. I would like to know if this is actually possible, i.e. the ability to deny complete access of a specific drive/partition to a newly created user account (local) somewhere in the advanced...
User Accounts and Family Safety
Cortana disables Windows Audio Service, Wireless Adapter, & Start Menu
First let me start with laptop specs: Acer Inspire V V3-372T-5051 Intel Core i5-6200U 2.3GHz Intel HD Graphics 520 6GB DDR3 L Memory 256 GB SSD Running fully up-to-date version of windows 10 with no additional software It seems that...
Software and Apps
Change default size of newly opened windows?
I was wondering if theres a way to change how and where new apps open? Say i open a new window of My Computer, it automatically opens in a small box in the left side of my screen. I would prefer it automatically open taking up half of the display....
General Support
Windows 10 Calendar deletes newly created future events
I just started trying out the new Windows 10 mail and calendar app. I synced it to my google account and I can see events on the calendar. However, when I try and create future events (specifically after 1/24/2016) they disappear after 2 seconds. I...
Software and Apps
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 05:45.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums