XAudio2 is a cross-platform API that has shipped for use on Xbox 360 as well as versions of Windows, including Windows XP, Windows Vista, Windows 7, and Windows 8. On Xbox 360, XAudio2 ships as a static library that is compiled into the main game executable. On Windows, XAudio2 is provided as a Dynamic Link Library (DLL) installed into the system folders of the Operating System.
Current version of XAudio2 on Windows 10
XAudio2 version 2.9 ships as part of Windows 10, XAUDIO2_9.DLL, alongside XAudio2.8 to support older applications, and does not require redistribution.
XAudio2.9 has been updated with the following changes:
- New creation flags: XAUDIO2_DEBUG_ENGINE, XAUDIO2_STOP_ENGINE_WHEN_IDLE, XAUDIO2_1024_QUANTUM
- xWMA support is available in this version of XAudio2.
- The CreateHrtfApo function is supported in this version of XAudio2.
- XAUDIO2FX_REVERB_PARAMETERS now includes the value SideDelay for 7.1 systems.
- The ReverbConvertI3DL2ToNative function now includes the boolean sevenDotOneReverb parameter enabling 7.1 reverb.
XAudio 2.8 (Windows 8.x)
XAudio2 version 2.8 ships today as a system component in Windows 8, XAUDIO2_8.DLL. It is available “inbox” and does not require redistribution with an app. We recommend to use the Windows Software Development Kit (SDK) for Windows 8 to develop against XAudio2; the Windows SDK for Windows 8 contains the necessary header and import library for statically linking against XAUDIO2_8.DLL.
XAudio2 2.8 has been updated with the following changes:
- This version supports Windows Store app development; the XAudio2 API can be used in C++/DirectX Windows Store apps.
- XAudio2Create is a flat Win32 API call and no longer creates an XAudio2 CLSID. Support for instantiating XAudio2 by CoCreateInstance has been removed.
- The Initialize function is now implicitly called by the creation process and has been removed from the IXAudio2 interface.
- Device enumeration functionality has been removed from XAudio2; the GetDeviceDetails and GetDeviceCount functions have been removed from the IXAudio2 interface. Apps that want to render to other audio devices on the system must pass a device identifier string to CreateMasteringVoice instead of a device index. The default audio render device can still be created without enumeration.
- IXAudio2MasteringVoice has an added function IXAudio2MasteringVoice::GetChannelMask for that returns the channel mask for the destination output device.
- The X3DAudio and XAPOFX libraries are merged into XAudio2. App code still uses separate headers, X3DAUDIO.H and XPOFX.H, but now links to a single import library, XAUDIO2_8.LIB.
- xWMA support is not available in this version of XAudio2; xWMA will not be supported as an audio buffer format when calling CreateSourceVoice. We now recommend the Media Foundation Source Reader object for decoding a wide variety of media formats into in-memory PCM buffers.
- CreateFX now takes four parameters rather than two. The newer parameters specify initial data as part of XAPOFX creation.
XAudio 2.7 and earlier (Windows 7)
All previous versions of XAudio2 for use in apps have been provided as redistributable DLLs in the DirectX SDK. The first version of XAudio2, XAudio2 2.0, shipped in the March 2008 release of the DirectX SDK. The last version to ship in the DirectX SDK was XAudio2 2.7, available in the last release of the DirectX SDK in June 2010.
For access to historical versions of XAudio2, download the DirectX SDK from the Microsoft Download Center. The June 2010 release of the DirectX SDK is available at:
Previous versions of XAudio2 cannot be used to build Windows Store apps for Windows 8.