[Openal] Max number of sources (and legit id values)
foreachOpenALimplementation
Jason Daly
jdaly at ist.ucf.edu
Thu Jul 23 09:10:56 PDT 2009
Daniel PEACOCK wrote:
>
> Hi All,
>
> The original motivation for having the ALC_MONO_SOURCES and
> ALC_STEREO_SOURCES hints was due to the fact that an OpenAL Source
> that can be used to play buffers that could have anywhere between 1
> and 8 (maybe even more) channels of data. For software mixers this is
> no big deal - but for hardware devices that require one voice per
> channel (e.g Stereo requires 2 voices) it is a big problem. If you are
> running on a hardware device with 128 voices then generating 128
> sources and using them to play 128 mono buffers is OK - but you can't
> use them to play 128 Stereo buffers.
>
Yeah, I understand that. The only thing I wasn't clear on was what you
get back when you call alcGetIntegerv with ALC_MONO_SOURCES or
ALC_STEREO_SOURCES. The spec calls these "hints", so it's not really
clear on what you will get back (unless I'm missing something again).
If I were writing an implementation, I could argue that you should only
get your hint values back, but it sounds like the intent is that it
should return the number of sources actually available.
--"J"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://opensource.creative.com/pipermail/openal/attachments/20090723/089f786a/attachment.html
More information about the Openal
mailing list