[Openal] Playing multiple sounds

Ben Martin ben.martin at nextlevelsw.com
Tue May 1 18:27:19 PDT 2007


First off, I am new to OpenAL so I apologize if this is basic. I went
through the archives and documentation but I am confused on how to
achieve this.

 

I am working on a game using OpenAL and OGGVorbis with about 50
different sounds. Several of these sounds can be played simultaneously
at any given time. In my first implementation, I was creating several
OpenAL contexts and I was assigning the sounds to be played to each
"player" using round robin. I know this is a very poor implementation so
I want to redo it using multiple sources instead of contexts.

Most examples I found either have only 1 source or each source is
associated with only one sound buffer. I don't want to create 50 sources
as I think this can cause problems with some systems (correct me if I'm
wrong).

 

So, can someone show me an example or show me in the right direction to
implement this?

 

Thank you...

 

B.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20070501/ca173633/attachment.html


More information about the Openal mailing list