In my past experience with DirectSound when I wanted to play one sound buffer multiple times simultaneously I would have to clone() each buffer.
This is because each buffer has a read/write pointer, and when play() was called it would begin playing from the position of the read pointer. Which means an already playing buffer would begin playing from where it was already playing at.
Now in FMOD it seems to restart the sample each time playSound() is called.
My immediate solution is to load multiple clones of each sample so it can be played lots at once.
My question, is there a better way with FMOD or am I on the right track?
- Halsafar asked 11 years ago
- You must login to post comments