Re: error -1 returned from alSourcePlay
Eric Wing <[email protected]> Wed, 2 Jan 2013 10:28:17 -0800
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <CA+Q62MACHanZSWWKi884mRRGVWEPCsCT5yF6yd1KxY=rXN=Vpg@mail.gmail.com> |
On 1/1/13, Steven Fuchs <[email protected]> wrote: > Hello All, Thanks in advance for any help that can be given. > > Trying to improve a sound engine for an open source game and I run into an > odd problem during stress testing. This is that some sources (and associated > data) can play jus fine, for a while, but all of a sudden the calls to > alSourcePlay start returning -1 (Unknown Internal Error). This doesn't seem > to be documented as a possible rerun value, any idea what causes it? > > Once this happens it seems to never stop happening. At least for that sound, > others do seem to play. I'm under the impression that you can play the same > data from two different sources. Is there some sort of timing limit to get > this to work? I haven't pinned down the exact situation but so far I've only > been able to recreate it in massive battles. > > This is on a Macbook Pro running Mountain Lion. > > Thanks in Advance. > > steve Hi Steve, I don't think I have encountered or heard of this specific bug, though I have had more than my share of bugs with Apple's implementation through the years. Many of them seem to be race condition oriented. It is possible and allowed to have multiple sources playing the same buffer. I do this quite often. Assuming this is not a bug in your own code, my recommendation is to file a bug with Apple at bugreporter.apple.com. If you can isolate it down to a reproducible test case, my experience is that the Core Audio team at Apple is very good about fixing these bugs. And since you are on Mac, their OpenAL implementation has been open sourced (though I don't know if they have posted the latest code recently). You might be able to use that to either help track down the problem, or fix it directly without waiting for Apple if it is indeed an OpenAL implementation bug (though please file the bug for the rest of us). -Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal