android - How to get active engine object in OpenSLES -
i facing problem in using opensles on android 2.3.
when tried create engine object, got following error: slcreateengine while engine active
i know opensles android(2.3? because didn't find issue on android 4.x) supports single engine, don't know engine from.
is there interface in opensles check whether there active engine or not?
thanks in advance hints!
this boggling me of time application works, every , find error occurs leading unusable opensl engine, noted on android 2.3.
the sl_result_resource_error can thrown varitude of reasons, instance pthread error, out-of-memory etc. these return appropriate error codes.
it's more boils down application architecture, there multiple bits of code create engine object or there 1 entry point ? can't retrieve active engine objects opensl, must store pointers/references engine objects pass slcreateengine-method. might idea check status (and close engines) prior running create engine method, possible firing multiple times (for instance, activity's oncreate / onpause / onresume-methods might triggering new creation).
Comments
Post a Comment