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. In short: in some situations the XAudio DLL itself is unloaded before the XAudio2 objects are completely destroyed, thus leading to an access violation. This…

17

DirectX Tool Kit for Audio

The December 2013 release of DirectXTK is now available on CodePlex, and includes a C++ implementation of the XNA Game Studio’s low-level audio framework using XAudio2 and X3DAudio. AudioEngine – This class represents an XAudio2 audio graph, device, and mastering voice; similar to XNA’s AudioEngine. SoundEffect – A container class for sound resources which can…

0

Learning XAudio2

With the inclusion of XAudio2 in Windows 8, there’s been renewed interest in learning how to use this API. The documentation on MSDN is of course a great place to start, and be sure to read through the entire Programmer’s Guide as there’s lots of great information throughout. You should also start by watching the…

0

XINPUT and XAudio2

In an earlier post, I covered how to use XInput with the release of the Windows 8 Consumer Preview. In this post, I’ll discuss how to make use of headset audio for the Xbox 360 Common Controller. Update: This advice also applies to the Windows 8 Release Preview / RTM and Visual Studio 2012 RC /…

0

XDSP.H: Digital Signal Processing helper functions

The DirectX SDK (June 2010) release includes a little utility header, XDSP.H. This contains CPU-based functions for computing the Fast Fourier Transform (FFT) as well as some related multi-channel audio interleave/deinterleave functionality primarily used in writing custom xAPOs for XAUDIO2. The DirectX SDK version makes use of SSE intrinsics, which means it supports Windows x86…

4

XINPUT and Windows 8

The Windows 8 Consumer Preview includes version 1.4 of the XInput API for use with Xbox 360 Common Controller compatible game devices, and this API is fully supported for both Windows Store apps (including x86, x64, and Windows on ARM) and desktop Win32 applications. The full details of the differences compared to XInput 1.3 which shipped…

7

XAudio2 and Windows 8

The Windows 8 Consumer Preview includes version 2.8 of the XAudio2 game audio API built in, and this API is fully supported for both Windows Store apps (including x86, x64, and Windows on ARM) and desktop Win32 applications. The full details of the differences compared to XAudio2 2.7 which shipped in the DirectX SDK (June…

9