I'm trying to use XAudio2
The idea I got is that I should have the following in XAudio2:
- Listener
- SourceVoice
In FPS game, "Listener" should be the player, while "SourceVoice" can be any other model making sound.
Am I right?
How do I setup multiple SourceVoice and play them all during the game? If a helicopter is getting close, the player should hear it, at the same time if the player is taking fire, the player should hear the sound of the bullet hitting the wall for example at the same time.
The player should hear EVERYTHING around at the same time.