Source
- URL: https://x.com/technomantics/status/1906825834763370814
- Author: Technomantics™ - °A Shrewd Skew° heading to Steam (@technomantics)
- Posted: 2025-03-31 21:48:00
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.