Re: error -1 returned from alSourcePlay
Eric Wing <[email protected]> Wed, 23 Jan 2013 11:59:44 -0800
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <CA+Q62MC0kbcf-6dssbPso2Z-Cn=F2BAG8bmXp9xEdvqqy8G1TA@mail.gmail.com> |
> So I just had one more question. Can there be differences between the number > of sources you can create and the number of sounds that can play at once? > > I create 200 sources at startup and under normal conditions everything is > fine. But under stress testing at some point it just seems to not play the > sounds, returning this unknown internal error.. They are already being > played by other sources, so I know the data is correct. Just wondering if > there can be sound playing limits more stringent than the number of sources > alone.. With Apple's implementation, you can create more sources (256?) than you play simultaneously. This may be the reason for your error messages. On Mac, the simultaneous limit is 64 if I recall correctly, with an extension API they provide that can let you change it. I have a table in my book also shown in my video presentation that shows the behavior for all the different major OpenAL implementations: http://www.youtube.com/watch?v=6QQAzhwalPI Only Apple's implementation does it this way. For the most portable code, I recommend you stick to maximum number of simultaneous sources that your lowest common denominator platform supports and recycle them like crazy. (32 on iOS, 16 if you are paranoid about old Creative Labs cards.) -Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal