Software:XAudio2

From HandWiki
XAudio2
Developer(s)Microsoft
Initial releaseMarch 7, 2008; 16 years ago (2008-03-07)[1]
Stable release
2.9 / July 29, 2015; 8 years ago (2015-07-29)[2]
Operating systemWindows XP and later, Xbox 360, Windows Phone 8
TypeApplication programming interface (API)

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.[3][4][5]

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,[6] enabling a programmer with Visual Studio to use XAudio2 in a Windows, Xbox 360 and Windows Phone 8 project. The latest version of XAudio2 is 2.9, released for Windows 10.[2]

XAudio2 versions have shipped for use on Xbox 360 and versions of Windows, and for as old as Windows XP using redistributable DLLs, with newer versions adding features only compatible with newer operating systems.[7] E.g. XAudio 2.8 shipped with Windows 8, and supports Windows Store apps, and isn't available for older Windows versions nor is it included in Windows Server 2012.

There are known issues with XAudio2 2.7 library that is "in the legacy DirectX SDK".[8]

"XAudio2: High Performance Considerations" (talk) supports Windows 7.[9]

Features

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.[5]

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 10, and various ADPCM codecs on both platforms. XAudio2 2.8 supports Windows Store App development and can be used in C++/DirectX apps.[7]

See also

References

  1. "DirectX Software Development Kit (March 2008)". Microsoft.com. March 7, 2008. http://www.microsoft.com:80/downloads/details.aspx?FamilyId=572BE8A6-263A-4424-A7FE-69CFF1A5B180&displaylang=en. 
  2. 2.0 2.1 Walbourn, Chuck (July 30, 2015). "Windows 10 SDK RTM". Microsoft.com. https://blogs.msdn.microsoft.com/chuckw/2015/07/30/windows-10-sdk-rtm/. 
  3. Sherrod, Allen (2009). Ultimate Game Programming with DirectX. Cengage Learning. p. 283. ISBN 978-1584506201. https://books.google.com/books?id=MbALAAAAQBAJ&pg=PA283. 
  4. Kelly, Charles (2012). Programming 2D Games. CRC Press. p. 181. ISBN 978-1466508682. https://books.google.com/books?id=PoPw--vPXfUC&pg=PA181. 
  5. 5.0 5.1 "XAudio2 Introduction". Microsoft. October 12, 2013. http://msdn.microsoft.com/en-us/library/windows/desktop/ee415813%28v=vs.85%29.aspx. 
  6. The XAudio 2 Beta Program is being retired! connect.microsoft.com (needs Microsoft account)
  7. 7.0 7.1 "XAudio2 Versions" (in en). https://msdn.microsoft.com/en-us/library/windows/desktop/ee415802(v=vs.85).aspx. "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. [..] 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." 
  8. "Known Issues: XAudio 2.7" (in en-US). Games for Windows and the DirectX SDK. https://blogs.msdn.microsoft.com/chuckw/2015/10/09/known-issues-xaudio-2-7/. "The XAudio2 library in the legacy DirectX SDK makes use of COM creation and reference counting for lifetime management, and a recent investigation has found a problem in this implementation. [..] This issue does not affect XAudio 2.8 (Windows 8 SDK), XAudio 2.9 (Windows 10 SDK)" 
  9. "XAudio2: High Performance Considerations" (in en-us). https://www.microsoft.com/en-us/download/details.aspx?id=6871. 
  10. "About the Windows Core Audio APIs (Windows)" (in en). https://msdn.microsoft.com/en-us/library/windows/desktop/dd370784(v=vs.85).aspx. "Microsoft does not plan to make the Core Audio APIs that are described here available for use with earlier versions of Windows, including Microsoft Windows Server 2003, Windows XP, Windows Millennium Edition, Windows 2000, and Windows 98."