xaudio2_7.dll Missing on Windows? Fix It Safely
In this article
A missing xaudio2_7.dll error means a program is trying to use the DirectX audio component that ships with DirectX 9.0c, and that component is either absent, corrupted, or not registered on your PC. The fix is to install the official DirectX End-User Runtime from Microsoft, which places the correct 32-bit and 64-bit copies of the DLL in the right system folders, then restart the game or app. Do not download the DLL from a random DLL site; that is the most common way people make the problem worse.
What You'll Need
- A Windows PC with an internet connection.
- Administrator rights on the account you are using (you will be prompted by User Account Control).
- The official DirectX End-User Runtime web installer from Microsoft's Download Center. Search for "DirectX End-User Runtime Web Installer" on microsoft.com and use the download page that ends in microsoft.com.
- Optional: the name of the game or program that shows the error, so you can test it afterwards.
- Optional: a restore point, if you like having a rollback option before installing runtime components.
Step-by-Step
- Close the game or app. If the error dialog is still open, close it. If the program is running in the background, right-click its taskbar icon and choose Close, or use Task Manager to end the process. Installing DirectX while the game is running can leave the DLL locked.
- Download the official DirectX End-User Runtime. Go to Microsoft's Download Center and search for the DirectX End-User Runtime Web Installer. Download the small setup file (usually named
dxwebsetup.exe) and save it somewhere you can find, such as your Downloads folder. Avoid third-party DLL sites entirely. - Run the installer as administrator. Right-click
dxwebsetup.exeand choose Run as administrator. Accept the User Account Control prompt. The installer may offer to install the Bing Bar or similar optional extras; clear those checkboxes so you install only DirectX. - Let the installer finish. It downloads the required DirectX components and installs them. This can take a few minutes on a slow connection. Do not close the window until it reports that installation is complete.
- Restart your PC. A restart ensures the new DLL files are loaded correctly and any pending file replacements complete. This step is not optional if the installer asks for it.
- Test the game or app. Launch the program that showed the error. If it opens without the xaudio2_7.dll message, you are done. If the error persists, continue to the next steps.
- Check for a 32-bit versus 64-bit mismatch. The DirectX runtime installs both the 32-bit and 64-bit versions of xaudio2_7.dll. A 32-bit game needs the copy in
C:\Windows\SysWOW64, and a 64-bit game needs the copy inC:\Windows\System32. You normally should not copy files manually, but you can confirm both files exist after the runtime install. If one is missing, re-run the DirectX installer rather than pasting a DLL from elsewhere. - Reinstall the affected game or app. Some games ship their own copy of the DirectX redistributable in their install folder. If the runtime install did not fix it, uninstall the game through Settings > Apps > Installed apps, then reinstall it from the official store or disc. This restores any bundled runtime files the game expects.
- Run the DirectX Diagnostic Tool. Press Windows+R, type
dxdiag, and press Enter. On the System tab, check the DirectX Version line. On the Display tabs, check for reported problems. This will not repair the DLL, but it tells you whether DirectX itself is healthy and whether a display driver issue is involved. - Update your audio and display drivers. xaudio2_7.dll is an audio component, so an outdated or broken audio driver can cause load failures even when the DLL is present. Get drivers from your PC manufacturer's support site or from the audio chip maker's official site. Avoid driver updater utilities.
Common Mistakes
- Downloading the DLL from a DLL aggregator site. These files are often outdated, modified, or bundled with unwanted software. They also bypass the registration and dependency setup the official runtime performs.
- Copying a 64-bit DLL into a 32-bit game folder, or the reverse. The bitness must match the program. If you must inspect the files, remember that on 64-bit Windows the 32-bit system folder is SysWOW64 and the 64-bit folder is System32, which is the opposite of what many people expect.
- Installing only the DirectX 12 runtime. DirectX 12 does not replace the DirectX 9.0c audio libraries that many older games still call. You need the DirectX End-User Runtime specifically.
- Skipping the restart. The installer may report success while files are still pending replacement until reboot.
- Ignoring the exact error text. "xaudio2_7.dll is missing" is different from "xaudio2_7.dll was not found" or an error about a procedure entry point. Note the exact wording before you start, because it changes which fix applies.
Tips
- Keep a copy of the official DirectX End-User Runtime installer on a USB stick. It is small and fixes this error on any Windows PC without hunting for the download again.
- If you use a game launcher such as Steam, verify the game files from the game's properties or library menu. That replaces missing bundled files without a full reinstall.
- Run Windows Update after the DirectX install. Some audio and chipset components arrive through Windows Update rather than the game installer.
- If the error appears only in one game, suspect that game's installation before suspecting Windows. If it appears in several games, the system runtime is the more likely cause.
- Do not disable your antivirus permanently to install the runtime. If the installer is blocked, add a temporary exclusion for the setup file, install, then remove the exclusion.
Troubleshooting
If the official runtime installs but the error returns, work through these checks in order.
- The installer says DirectX is already installed. The web installer may skip components it thinks are present. Download the full DirectX End-User Runtime redistributable package instead, which forces the components to install, then restart.
- The error names a specific program folder. Some games look for the DLL next to the executable before checking the system folders. Reinstalling that game, or using its launcher's verify-files option, restores the local copy.
- You see a side-by-side configuration error alongside it. That points to a missing Visual C++ redistributable rather than DirectX. Install the Microsoft Visual C++ Redistributable packages (both x86 and x64) from Microsoft's official download page, then retry.
- The error appears after a Windows update. Open Settings > Windows Update > Update history and uninstall the most recent update if the problem started immediately after it, then reinstall the DirectX runtime. Reinstall the update afterwards if the system is stable.
- System file corruption is suspected. Open Command Prompt as administrator and run
sfc /scannow, thenDISM /Online /Cleanup-Image /RestoreHealth. These repair Windows system files but will not add DirectX 9 audio libraries, so run the DirectX installer again afterwards. - Nothing works and the game is old. Check the game publisher's support page for a legacy DirectX redistributable specific to that title. Older games sometimes require the exact runtime version they shipped with.
Frequently Asked Questions
Is xaudio2_7.dll a virus?
No. It is a legitimate Microsoft DirectX audio component. A file with that name downloaded from a third-party DLL site may be tampered with, which is why you should only get it through the official DirectX runtime installer.
Can I just copy xaudio2_7.dll into the game folder?
It sometimes makes the error go away, but it is not the recommended fix because the file may not match the program's bitness or the required DirectX version. Installing the official runtime is safer and covers dependencies the single file does not.
Does installing DirectX 12 fix this?
Not by itself. DirectX 12 does not include the DirectX 9.0c audio libraries. You need the DirectX End-User Runtime, which installs alongside newer DirectX versions without replacing them.
Why does the error come back after I fix it?
Usually because a game update, a system restore, or a cleanup tool removed the runtime files. Re-run the DirectX installer and check whether any cleanup utility is deleting files from the Windows system folders.
Will this fix affect other games?
Installing the DirectX End-User Runtime is additive. It adds the older DirectX 9 components that many games still use and does not remove or downgrade DirectX 10, 11, or 12.
Do I need to reinstall Windows?
No. A missing xaudio2_7.dll is almost always solved by the official runtime install, a game reinstall, or a system file repair. Reinstalling Windows is a last resort and rarely necessary for this error.