Source

Branch

1/ @technomantics

I asked Grok for you: For XAudio2, Microsoft’s got decent sample code in their docs—check out the “XAudio2 Basic Audio” sample (http://learn.microsoft.com/en-us/windows/win32/xaudio2/xaudio2-sample-programs). It’s C++, straightforward, and covers initializing and playing audio buffers. WASAPI’s trickier, but their “Windows Audio Session (WASAPI) rendering sample” (http://learn.microsoft.com/en-us/windows/win32/coreaudio/rendering-a-stream) is a good starting point if you go that route.

and then I asked if it would be easier to just include the dll in the same folder as your game’s executable (as I do this if needed or get weird bugs), and it said yes, as long as you have a working version that works with your game. Said it would be a decent fall back.