How to play many sounds at once in OpenAL

Posted by Krom Stern on Game Development See other posts from Game Development or by Krom Stern
Published on 2010-12-27T10:13:18Z Indexed on 2013/10/30 22:20 UTC
Read the original article Hit count: 250

Filed under:
|

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?

© Game Development or respective owner

Related posts about design-patterns

Related posts about openal