microsoft / DirectXTK

The DirectX Tool Kit (aka DirectXTK) is a collection of helper classes for writing DirectX 11.x code in C++
https://walbourn.github.io/directxtk/
MIT License
2.52k stars 498 forks source link

DirectX Tool Kit for Audio support for Spatial Audio #323

Open walbourn opened 2 years ago

walbourn commented 2 years ago

See this sample for using the HRTF xAPO for XAudio2.

walbourn commented 2 years ago

Note that with Windows 11, Version 22H2 or with the latest XAudio2Redist 1.2.9, you can automatically use "Spatial Audio" via the "Virtual Surround Sound" (VSS) feature on Windows 10 (Fall Creators Update or later). This means you use XAudio2 to produce a 5.1 or 7.1 surround mix, and for headphones that support VSS it will then process that mix to the Spatial Audio to simulate that listening scenario.

This issue is for adding enough support to DirectX Tool Kit for Audio to explicitly add the HRTF xAPO to the graph but leave the control up to the user of the library.