OpenAL: how to determine maximum available Sources
OpenAL: how to determine maximum available Sources
- Subject: OpenAL: how to determine maximum available Sources
- From: Pi <email@hidden>
- Date: Tue, 7 Dec 2010 11:32:30 +0700
The OpenAL code I'm using just #defines MAX_SOURCES 32
I have found that I can set this number arbitrarily high e.g. 1024. And alGenSources does not complain. It happily generates 1024 sourceIds without returning an error. However only the first handful, say 32 actually play a sound.
Is there somewhere I can interrogate the system to figure out how many _working_ sources it can handle? it is very ugly to #define something which may well change between different devices.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden