How to play many sounds at once in OpenAL
- by Krom
Hello,
I'm developing an RTS game and I would like to add sounds to it. My choice has landed on OpenAL. I have plenty of units which from time to time make sounds: fSound.Play(sfx_shoot, location). Sounds often repeat, e.g. when squad of archers shoots arrows, but they are not synced with each other.
My questions are:
What is the common design pattern to play multiple sounds in OpenAL, when some of them are duplicate?
What are the hardware limitations on sounds count and tricks to overcome them?