[Openal-devel] Maximum Auxiliary Effect Slots

Jason Daly jdaly at ist.ucf.edu
Tue Jun 23 22:33:06 PDT 2009


Jason Daly wrote:
>> If that is so how do I get the maximum count.
>>     
>
> alcGetIntegerv(contextID, ALC_MAX_AUXILIARY_SENDS, &max);
>
> (call this after creating your context)
>   

Sorry, that should be:

alcGetIntegerv(device, ALC_MAX_AUXILIARY_SENDS, 1, &max);

Note the extra parameter, and that you pass the device handle, not the 
context ID.

Also, you can pass ALC_MAX_AUXILIARY_SENDS and a value as context 
creation parameters to request a given maximum.  You still have to query 
to see how many you actually get, though.

--"J"


More information about the Openal-devel mailing list