See [this sample](https://docs.microsoft.com/en-us/samples/microsoft/windows-universal-samples/spatialsound/) for using the [HRTF xAPO](https://docs.microsoft.com/en-us/windows/win32/api/hrtfapoapi/) for XAudio2.