- Article
- 8 minutes to read
In Windows 10 you can write a universal audio driver that works on many types of hardware. This topic discusses the benefits of this approach as well as the differences between the platforms. In addition to the universal Windows drivers for audio, Windows continues to support legacy audio driver technologies such as WDM.
Introduction to Universal Windows Drivers for Audio
IHVs can develop a universal Windows driver that works on all devices (desktops, laptops, tablets, phones). This can reduce development time and costs for initial code development and subsequent maintenance.
These tools are available to develop universal Windows drivers:
Visual Studio 2015: Set Target Platform equal to Universal. For more information on configuring the driver development environment, seeIntroduction to Universal Windows Drivers.
APIValidator Tool - You can use the ApiValidator.exe tool to verify that the APIs called by your driver are valid for a Universal Windows Driver. This tool is part of the Windows Driver Kit (WDK) for Windows 10 and runs automatically when using Visual Studio 2015. For more information, seeUniversal Windows driver validation.
DDI Reference Documentation: The DDI reference documentation has been updated to indicate which DDIs are supported by Universal Windows Drivers. For more information, seeAudio Device Reference.
Build a universal audio driver
For step-by-step instructions, seeIntroduction to Universal Windows Drivers. Here is a summary of the steps:
Load the universal audio sysvad sampler to use as a starting point for your universal audio driver. Alternatively, you can start with the blank WDM driver template and add the universal sysvad sample code as needed for your audio driver.
Set the target platform to "Universal" in the project properties.
Create an installation package: If your target device is a device running Windows 10 for desktop editions (Home, Pro, Enterprise, and Education), use a configurable INF file. If your target is a device running Windows 10 Mobile, use PkgGen to generate an .spkg file.
Build, install, deploy, and debug drivers for Windows 10 Desktop or Windows 10 Mobile editions.
(Video) UA Support: How to use Volt for Windows System Audio
sample code
Sysvad and SwapAPO have become examples of universal Windows drivers. For more information, seeSample audio driver.
Programming interfaces available for universal Windows drivers for audio
Beginning with Windows 10, DPIs are part of OneCoreUAP-based editions of Windows. With this common set, you can write a universal Windows driver. These drivers run on Windows 10 Desktop and editions of Windows 10 Mobile and other versions of Windows 10.
The following DDIs are available when working with universal audio drivers.
Audio-Controller-Event-Sets
Audio Controller Interfaces
Property sets for audio controllers
Audio Controller Structures
Audio Topology Node
High Definition Audio DDI Reference
Audio driver reference for the port class
Convert an existing audio driver to a universal Windows driver
Follow these steps to convert an existing audio driver to a Universal Windows driver.
Determine if existing driver calls are running on OneCoreUAP Windows. See the Requirements section on the reference pages. For more information, seeAudio Device Reference.
Recompile your driver as a universal windows driver. Set the target platform to "Universal" in the project properties.
(Video) How to Download and Update Realtek HD Audio Driver on Windows 10 or Windows 11Use the ApiValidator.exe tool to verify that the DDIs called by your driver are valid for a Universal Windows driver. This tool is part of the Windows Driver Kit (WDK) for Windows 10 and runs automatically when using Visual Studio 2015. For more information, seeUniversal Windows driver validation.
If the driver calls interfaces that are not part of OneCoreUAP, the compiler reports errors.
Replace these calls with workaround calls, workaround code, or write a new handler.
Creating an audio driver installation with components
overview
Divide the driver installation process into the following components for smoother, more reliable installation and better support for component maintenance.
- DSP (if any) and codec
- Apo
- OEM customizations
Optionally, separate INF files can be used for DSP and codec.
This diagram summarizes a component audio setup.
A separate INF extension file is used to customize each core controller component for a specific system. Customizations include tuning parameters and other system-specific settings. For more information, seeUsing an INF file extension.
An INF extension file must be a universal INF file. For more information, seeUsing a universal INF file.
For information about adding software using INF files, seeUsing a component INF filemiDCH design principles and best practices.
Send INF files in components
APO-INF packages must be sent to Partner Center separately from the base driver package. For more information on creating packages, seeIntroduction to Windows HLK.
SYSVAD component INF files
An example of INF files with components can be found in thesysvad/TabletAudioMuestra, sin github.
filename | description |
---|---|
ComponentizedAudioSample.inf | The base components sample audio INF file. |
ComponentizedAudioSampleExtension.inf | Extension driver for basic sysvad with additional OEM adjustments. |
ComponentizedApoSample.inf | A sample APO extension INF file. |
The traditional INF files are still available in the SYSVAD sampler.
filename | description |
---|---|
tabletaudiosample.inf | A monolithic desktop INF file that contains all the information needed to install the driver. |
Configure APO manufacturer specific functions and tuning parameters
All system-specific settings, parameters, and APO provider settings must be installed via an extension INF package. In many cases this is easily possible with theINF AddReg-Direktive. In more complex cases a tuning file can be used.
Basic driver packages should not rely on these customizations to work (although functionality may of course be limited).
UWP audio settings apps
Use hardware application support (HSA) for a Windows Universal Audio Driver to implement an end-user interface. For more information, seeHardware Support Application (HSA) steps for driver developers.
Programmatic release of UWP hardware support apps
Use the Windows Shell APIs to programmatically launch a hardware-enabled UWP app based on a controller event (such as when a new audio device is connected). Windows 10 Shell APIs support a method of launching the UWP UI based on feature activation or directly viaIApplicationActivationManager. For more details on the automated launch of UWP apps, seeAutomate the launch of Windows 10 UWP apps.
Using the APO Device Driver Provider and the AudioModules API
The Audio Module API/DDI was designed to standardize the communication transport (but not the protocol) for commands passed between a user-mode UWP app or service to a kernel driver module or script block. Audio modules require a driver that implements the correct DDI to support module enumeration and communication. Commands are passed in binary and the interpretation/definition is left to the creator.
Audio modules are not designed to facilitate direct communication between a UWP app and APO software running on the audio engine.
For more information on audio modules, seeImplementation of audio module communicationmiConfigure and query audio device modules.
Structure of APO HWID chains
APO Hardware IDs contain standard information and strings defined by the manufacturer.
They are structured as follows:
SWC\VEN_v(4)&AID_a(4)&SUBSYS_ n(4)s(4) &REV_r(4)SWC\VEN_v(4)&AID_a(4)&SUBSYS_ n(4)s(4)SWC\VEN_v(4)&AID_a( 4)
Where from:
- v(4) is the 4-digit identifier for the APO device manufacturer. This is managed by Microsoft.
- a(4) is the 4-digit identifier for the APO, defined by the APO provider.
- n(4) is the 4-digit identifier that PCI SIG assigns to the subsystem vendor for the parent device. Usually this is the OEM ID.
- s(4) is the manufacturer-defined 4-digit subsystem identifier for the parent device. Usually this is the OEM product identifier.
Plug and Play INF version and date evaluation for driver update
The Windows Plug and Play system evaluates the date and version of the driver to determine which driver to install when multiple drivers are present. For more information, seeHow Windows classifies drivers.
To enable use of the latest driver, make sure to update the date and version for each new driver release.
APO driver registry key
For APO/Audio driver registry keys set by third parties, use HKR.
Use a Windows service to facilitate UWP <-> APO communication
A windows service is not strictly required to manage user mode components like APO. However, if your design includes an RPC server to facilitate UWP <-> APO communication, we recommend implementing this functionality in a Windows service that controls the execution of APO in the audio engine.
Create Sysvad Universal Audio Sample for Windows 10 Desktop
Follow the steps below to build the sysvad sample for the Windows 10 desktop.
Locate the desktop INF file (tabletaudiosample.inf) and set the Vendor Name to a value like "Contoso".
In Solution Explorer, select and hold (or right-click) the sysvad solution and select Configuration Manager. If you are deploying a 64-bit version of Windows, set the target platform to x64. Make sure the platform configuration and settings are the same for all projects.
Build all projects in the sysvad solution.
Locate the output directory to create the build. For example, it could be in a directory like this:
C:\Programmarchive (x86)\Windows Kits\10\src\audio\sysvad\x64\Debug\package
Copy the following files to the system where you want to install the sysvad driver:
archive | description |
---|---|
TabletAudioSample.sys | The driver file. |
tabletaudiosample.inf | An information file (.inf) that contains the information required to install the driver. |
sysvad.cat | The catalog file. |
SwapAPO. dll | A sample UI controller extension for managing APO. |
KeywordDetectorAdapter.dll | An example keyword detector. |
Install and test the driver
Follow these steps to install the driver usingPnpUtilno target system.
Open an administrator command prompt and type the following in the directory where you copied the driver files.
pnputil -i -a tabletaudiosample.inf
The sysvad driver installation should be complete. If errors occur, you can check this file for additional information:
%windir%\inf\setupapi.dev.log
In Device Manager, from the View menu, select Devices by Type. In the device tree, locate Microsoft Virtual Audio Device (WDM) – Sysvad Example. It is usually located in the Sound, video and game controllers node.
On the target computer, open the Control Panel and navigate tohardware and such>Manage audio devices. In the Sound dialog box, select the speaker icon labeled Microsoft Virtual Audio Device (WDM) – Sysvad Example and select Set as default but not OK. This keeps the sound dialog open.
(Video) Optimizing your Windows Computer for AudioLocate an MP3 or other audio file on the target computer and double click to play it. Then, in the Sound dialog box, verify that the volume meter associated with the Microsoft Virtual Audio Device (WDM) driver is active: Sysvad Sample.
FAQs
How to reinstall audio driver to fix sound problems in Windows 10? ›
If the issue still persists, kindly go to Settings>Update & Security>Windows Update. If there is a "View optional updates", click it. Next, click on Driver updates and see if your audio driver is listed there. If so, check that driver and click on "Download and install".
How do I fix missing audio drivers Windows 10? ›Select and hold (or right-click) the listing for your sound card or audio device, then select Update driver > Browse my computer for drivers > Let me pick from a list of device drivers on my computer. Select the audio device whose driver you want to update, select Next, and then follow the instructions to install it.
How do I repair and fix Realtek audio driver Windows 10? ›- Update Realtek High-Definition Audio. ...
- Disable Audio Enhancement. ...
- Enable/ Restart Windows Audio Service. ...
- Disable Microsoft UAA Bus Driver. ...
- Use a Generic high-definition Audio Device Driver. ...
- Change Default Sound Format. ...
- Reinstall Sound Driver. ...
- Select the Correct Output Device.
Check the drivers' list and expand the list if necessary. Look for the driver that has a yellow question mark. This mark indicates which device has a broken or corrupted driver. Once you find the corrupted driver, right-click on it and select Update driver from the context menu.
How do I fix a corrupted audio driver? ›- Update your audio device. If you're having audio problems, then updating the audio device can help you resolve the issue. ...
- Uninstall and Reinstall the Audio Drivers. ...
- Disable 'front panel jack detection' in Realtek audio manager.
You can either manually download and install or let the Windows Update service download and install the driver. Go to Settings > Update & Security > Windows Update page and then click on the Check for updates button to let Windows 10 automatically download and install the latest sound driver.
How do I manually update my audio driver? ›- In the search box on the taskbar, enter device manager, then select Device Manager.
- Select a category to see names of devices, then right-click (or press and hold) the one you'd like to update.
- Select Search automatically for updated driver software.
- Select Update Driver.
- Open Device Manager. ...
- Find Your Sound, Video and Game Controllers Section. ...
- Uninstall the Realtek HD Audio Driver and Do a Full Restart. ...
- Open Device Manager to Scan for Changes.
Often, Realtek HD audio drivers fail because they are out of date or you are using an incompatible version. Instead of manually updating drivers and hoping for the best, you can take the guesswork out of the process by using Driver Support.
Does Windows 10 need Realtek audio drivers? ›It is not necessary to enable Realtek HD Audio Manager on startup. When you connect a device, it will quickly launch and identify the device. If you want to open Realtek HD Audio Manager later or it doesn't automatically pop up, you can go to Control Panel to find and open it.
Will resetting PC fix audio driver issues? ›
If you're experiencing issues with your audio, resetting your PC may help resolve the issue. A reset will restore your PC to its default settings, which can help fix audio problems. However, a reset will also erase any personal files and data on your PC, so be sure to back up your files before resetting.
Why is my Realtek audio not working Windows 10? ›Update Realtek Audio Driver. You can press Windows + X keyboard shortcut, and click Device Manager to open Device Manager on Windows 10. Scroll down to click Sound, video and game controllers category to expand it. Right-click Realtek Audio and choose Update driver to update Realtek audio driver.
How do I change my audio driver to Realtek? ›1) Go to Device Manager. Open the “Run” dialog box by pressing and holding the Windows key, then press the R key (“Run”). 2) Expand category “Sound, video and game controllers” by click the arrow that is point right as seen below. Under this category, right-click on “Realtek High Definition Audio” or “Realtek Audio”.
What are the two symptoms of audio system failure? ›- No Sound Or Distorted Sound From Speakers. ...
- Surround Sound Directions Seem Wrong Or Audio Does Not Work. ...
- Music Lacks Treble Or Bass. ...
- Audio Volume Gets Too Loud.
- On your keyboard, press the Windows logo key and R at the same time to invoke the Run box.
- Type devmgmt. msc and press Enter to access Device Manager.
- You can expand a particular entry to check device/driver status.
Step 1: Press the Windows key and search for Device Manager. Step 2: Hit the Enter key and open the software. Step 3: Right-click on the corrupted device driver and select Properties. Step 4: Go to the Driver tab and check the Driver version.
How do I reset my drivers? ›How to reset graphics driver with Windows 11 and 10. With your keyboard, hit Windows + Ctrl + Shift + B. After a brief blackout, your monitor should refresh itself and hopefully, any issues to do with your graphics should be alleviated.
How do I install all audio drivers? ›- Click on the Start menu and type in Device Manager. ...
- Search for Sound, video and game controllers. ...
- Double-click on the audio entry and switch over to the Driver tab. ...
- Select Search automatically for updated driver software.
As mentioned, the “no audio output device is installed in Windows 10” error happens due to a corrupted or outdated driver. Therefore, the best way to fix this error is to update your sound drivers. You can update drivers manually, but it can be somewhat a daunting task.
Which audio driver is best for Windows 10? ›The most common audio driver for Windows 10 is the Realtek HD Audio Driver. The audio is of high quality and supports sample rates of up to 192 kHz and 24 bits, enabling you to experience superior sound quality compared to that of a standard 16-bit/48-kHz CD.
How do I restore my audio output device? ›
- Press Windows + R and open the Run window.
- Type devmgmt. ...
- Scroll down and look for Sound, video and game controllers.
- Double click on the category > right-click on the audio device > Update driver.
- In Windows, search for and open Device Manager.
- Double-click Sound, video and game controllers.
- Right-click the audio device, and then select Update Driver.
- Click Search automatically for updated driver software to check for and install a driver.
This issue of constantly reinstalling the audio driver might be due to software conflicts that have occurred when you updated Windows. We recommend performing a System File Check Scan and DISM to troubleshoot your concern.
How do I know if my audio driver is up to date? ›Use Device Manager to Update Sound Drivers
To use it, open the “Start” menu, search for “Device Manager”, and select the tool. In Device Manager, beside “Sound, Video and Game Controllers,” click the right-arrow icon. In the expanded menu, right-click your audio card and choose “Update Driver.”
When does my audio driver need updating? If your sound card manufacturer doesn't let you automatically update your driver — or if you aren't using an automatic driver updater — you may need to do so on your own. Here's how to check if your drivers are outdated using the Device Manager utility in Windows.
What is Realtek audio? ›Restart required. This package contains the Realtek High Definition audio driver. Audio driver is the software that helps your operating system to communicate with audio devices such as internal sound cards, speakers, headsets, and microphones. Recommended.
How do I get my Realtek HD Audio Manager back? ›The best way to fix Realtek HD Audio Manager Missing in Windows 10 is by updating the sound drivers. The company studies the feedback provided by the users and then works on them to develop the latest updates, which makes it easier for the users to fix the bugs in the software.
How do I reset my Realtek network adapter? ›...
To reset the network, here are the steps:
- Open Windows Settings by pressing Windows + I.
- Go to Network & Internet.
- Click Status and navigate to Network reset > click Reset now.
The Realtek HD audio driver failure error code: 0x0000246 occurs for a number of different reasons. It may point to an environment variable that prevents the installation of new audio devices, or corrupted driver software.
Should I install Realtek HD Universal drivers? ›To make sure your Realtek audio sound device works properly, updating the Realtek HD Universal driver is critical. According to some users, Nahimic 3 from MSI requires installing the Realtek HD Universal driver.
What is Realtek HD Universal driver? ›
Restart required. This package contains the driver for Realtek High Definition audio codec. Audio driver is the software that helps your operating system to communicate with audio devices such as internal sound cards, speakers, headsets, and microphones. Recommended.
What is better than Realtek audio driver? ›The best alternative is Nahimic, which is free.
Can a bad CPU cause audio issues? ›So basically, yeah, if your CPU is somehow a tiny bit damaged, it might be possible, that this would affect your sound.
Can I uninstall and reinstall audio drivers? ›You can easily reinstall the audio driver even if you don't have any computer skills. First, you need to uninstall the audio driver from Device Manager. After uninstalling the driver, you can simply restart your PC to allow Windows to reinstall the audio driver.
Does reinstalling Windows fix drivers? ›Yes, Resetting Windows 10 will result in a clean version of Windows 10 with mostly a full set of device drivers newly installed, though you may need to download a couple of drivers that Windows could not find automatically . . .
Why is my PC not detecting Realtek speakers? ›Update or reinstall your Realtek audio driver. You may be using a wrong or outdated audio driver if there is no sound from your Realtek Digital Output. You should update or reinstall the Realtek audio driver to see if this fixes the problem. One easy and credible way to do so is to use Driver Easy.
How do I enable Realtek HD Audio Manager in Windows 10? ›Press Ctrl + Shift + Esc to open Task Manager in Windows 10. Click Startup tab, and right-click Realtek HD Audio Manager to choose Enable. Restart your computer to see if Realtek HD Audio Manager shows up in the system tray.
Does Windows automatically installing Realtek audio drivers? ›Windows 10 will automatically update Realtek audio drivers if it finds that your Realtek drivers are not up to date. However, if you find Realtek driver can't work well, you can uninstall it permanently and stop Windows 10 from automatically installing Realtek audio drivers after uninstalling it.
How do I manually install drivers? ›- Open the Start menu and search for device manager.
- Select the top result.
- When Device Manager opens, expand the branch for the device you want to install.
- Right-click the device and select Update driver from the menu.
- Type Appwiz. ...
- Find audio driver entry and Right-click on the audio driver and then choose Uninstall option.
- Choose Yes to continue.
- Reboot your device when the driver is removed.
- Get the latest version of the audio driver and install it on your PC.
Why is there no sound after reinstalling audio driver? ›
· Reinstall or roll back audio drivers
Sometimes, the no sound issue is caused by incompatible drivers, may because the audio drivers are not properly or completely installed while updating. So, this time, the best possible way is to reinstall the audio driver on your PC.
- Click on the Start menu and type in Device Manager. ...
- Search for Sound, video and game controllers. ...
- Double-click on the audio entry and switch over to the Driver tab. ...
- Select Search automatically for updated driver software.
- Check your audio and sound source. ...
- Go to sound settings. ...
- Check external speakers. ...
- Turn to a Windows troubleshooter. ...
- Go to sound settings to run troubleshooter in another way. ...
- In the sound settings screen, check the Volume mixer. ...
- Click the Reset button. ...
- Check the sound control panel.
- Press Win + R to open Run.
- Type devmgmt. ...
- In Device Manager, expand the Audio inputs and outputs section.
- Make sure your output device is listed. ...
- Next, select and right-click on your audio device and select Update Driver.
- Click on Browse my computer for drivers.
Update or reinstall your Realtek audio driver
You may be using a wrong or outdated audio driver if there is no sound from your Realtek Digital Output. You should update or reinstall the Realtek audio driver to see if this fixes the problem. One easy and credible way to do so is to use Driver Easy.
- Open Device Manager. ...
- Find Your Sound, Video and Game Controllers Section. ...
- Uninstall the Realtek HD Audio Driver and Do a Full Restart. ...
- Open Device Manager to Scan for Changes.
This issue of constantly reinstalling the audio driver might be due to software conflicts that have occurred when you updated Windows. We recommend performing a System File Check Scan and DISM to troubleshoot your concern. The steps are found on this link.
Why is my Device Manager missing audio? ›If you are missing the Sound, video and game controllers category in Device Manager, your sound card drivers may not be installed properly. Your sound card may also be disabled, malfunctioning, or unavailable. First, verify no conflicts or other devices are present in the Device Manager.
How do I manually Update my audio driver? ›- In the search box on the taskbar, enter device manager, then select Device Manager.
- Select a category to see names of devices, then right-click (or press and hold) the one you'd like to update.
- Select Search automatically for updated driver software.
- Select Update Driver.
- Open the Settings app and click Sound, then scroll down to select More sound settings.
- This will open a new menu that lists out all your audio output and input devices. ...
- In the pop-up that appears, click the Advanced tab, then click Restore Defaults at the bottom.
Will factory Reset fix audio issues? ›
A reset will restore your PC to its default settings, which can help fix audio problems. However, a reset will also erase any personal files and data on your PC, so be sure to back up your files before resetting.