From Wikipedia, the free encyclopedia
Jump to: navigation, search

XAudio2 is a lower-level audio API for Microsoft Windows, Xbox 360 and Windows Phone 8, the successor to DirectSound on Windows and a supplement to the original XAudio on the Xbox 360.[1][2][3]

XAudio2 operates through the XAudio API on the Xbox 360, through DirectSound on Windows XP, and through the low-level audio mixer WASAPI on Windows Vista and higher.

The RTM release of the XAudio2 library is included in the March 2008 DirectX SDK,[4] enabling a programmer with Visual Studio to use XAudio2 in a Windows, Xbox 360 and Windows Phone 8 project.


XAudio2 provides mixing and signal processing for high-level audio APIs such as XACT and as well provides the programmer with high-level functions related to spatial processing.[3]

XAudio2 abstracts audio generation by separating sound data from "voice", allowing each voice to be filtered by programmable digital signal processing and effects processing functions. Voices can be "submixed" together into a single stream.

XAudio2 can natively decompress XMA on the Xbox 360, xWMA on Windows, and various ADPCM codecs on both platforms. XAudio2 2.8, the latest version supports Windows Store App development and can be used in C++/DirectX apps.[5]


  1. ^ Sherrod, Allen (2009). Ultimate Game Programming with DirectX. Cengage Learning. p. 283. ISBN 1584506202. 
  2. ^ Kelly, Charles (2012). Programming 2D Games. CRC Press. p. 181. ISBN 146650868X. 
  3. ^ a b "XAudio2 Introduction". Microsoft. October 12, 2013. Retrieved 2013-11-03. 
  4. ^ The XAudio 2 Beta Program is being retired! connect.microsoft.com (needs Microsoft account)
  5. ^ XAudio versions - accessed 11/2/2013 latest versions of XAudio2 new features