OpenAL - determine maximum sources

Posted by Bill Kotsias on Stack Overflow See other posts from Stack Overflow or by Bill Kotsias
Published on 2010-05-20T07:56:14Z Indexed on 2010/05/20 8:00 UTC
Read the original article Hit count: 305

Filed under:
|
|

Is there an API that allows you to define the maximum number of OpenAL "sources" allowed by the underlying sound hardware?

Searching the internet, I found 2 recommendations :

  • keep generating OpenAL sources till you get an error. However, there is a note in FreeSL (OpenAL wrapper) stating that this is "very bad and may even crash the library"
  • assume you only have 16; why would anyone ever require more? (!)

The second recommendation is even adopted by FreeSL.

So, is there a common API to define the number of simultaneous "voices" supported?

Thank you for your time,

Bill

© Stack Overflow or respective owner

Related posts about openal

Related posts about c++