https://pastebin.com/q300rp98
hey guys I have been working on trying to learn XAudio2, but I have been having a lot of trouble getting my proof-of-concept working. I have gotten 2 sounds playing simultaneously (bg music and fire effect); however, I can't seem to figure out how to get 2 sounds to play simultaneously. I tried making a Pool of SourceVoices, then calling GetState to see if that voice currently has UINT32 BuffersQueued != 0; if it did I would choose another Voice from the pool. Unfortunately, I can't seem to get it to work. Anyone with XAudio experience have any tips? Code posted above but of course don't feel like you need to read it, I would appreciate both specific and non-specific advice.