[Openal] Transparently mixing many sounds

Nolan Darilek nolan at thewordnerd.info
Tue Oct 3 14:24:49 PDT 2006


Excellent, thanks for the replies. I'm finally starting to tackle  
this problem, hence the delayed reply, and I'll probably have more  
questions.

It seems like I recall a way of doing this, but at the moment I'm  
blanking, and my skimming of the programmer's guide and quick google  
searches hasn't revealed anything. The API on which mine depends  
generates an exception when too many sources are played. I'd like to  
catch this exception, then set a maxVoices counter, beginning the  
distance culling whenever the number of playing voices exceeds the  
counter. Is there a way to get at how many sources OpenAL is  
currently mixing? If not then I can use my higher-level API's  
internal queues, but I don't yet know how accurate those are, so  
something lower-level would be more desirable for now. :)

Thanks.


More information about the Openal mailing list