How to play many sounds at once in OpenAL

Posted by Krom on Game Development See other posts from Game Development or by Krom
Published on 2010-12-27T10:13:18Z Indexed on 2010/12/28 1:02 UTC
Read the original article Hit count: 313

Filed under:
|

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?

© Game Development or respective owner

Related posts about design-patterns

Related posts about openal