Hey,
I'm working on updating a game to use XAudio2 instead of Directsound. The way the game handles sounds is the standard affair - load some wav files, create dsound buffers for each and play them when required.
I'm a little confused about the source voices - should I create a source voice for every sound I'm loading? I'm sure I saw a post on a forum somewhere saying no to that, but I can't find it now and i'm not 100% sure if that's actually what they said.
If you're not supposed to create source voices for all the sounds that can potentially play in your game, how do you handle it? Do you create a pool of source buffers and find an empty one to use when it comes to play a sound? Is it a bad idea to create and release source voices whenever they're required or is there high overhead from doing this?
I'm still working on implementing XAudio2 so I haven't had much of a chance to play around with this yet..any help would be appreciated!