visualboyadvance-m / visualboyadvance-m

The continuing development of the legendary VBA gameboy advance emulator.
https://visualboyadvance-m.org
3.38k stars 319 forks source link

Integrated XAudio headers do not work with clang-cl #1021

Open Steelskin opened 2 years ago

Steelskin commented 2 years ago

Request box

When building with clang-cl, we add a define for NO_XAUDIO2, this is because clang-cl cannot parse the XAudio headers in dependencies. We should update the xaudio headers or simply use the Windows SDK version. There is some complexity here as the XAudio2 interface has changed in Windows 8, so we will probably need to provide a pre-Windows 8 fallback implementation.

Reason box

N/A

Examples

N/A

Squall-Leonhart commented 2 years ago

use xaudio 2.9

https://learn.microsoft.com/en-us/windows/win32/xaudio2/xaudio2-redistributable