Hello fellow NDK devs,
We are developing a game using NativeActivity, OpenGLES2 and OpenSLES. We are experiencing an occasional lockup on HoneyComb (not verified on ICS) but are unable to determine the source due to the debugger not displaying a full stack when interrupting the app.
A message prior to the lock seems to indicate this is an OpenSL issue.
"W/libOpenSLES(26155): system/media/wilhelm/src/android/AudioPlayer_to_android.cpp:1087: object 0xe5dfb0 was locked by 0x1a2508 at system/media/wilhelm/src/itf/IPlay.c:38"
however, none of the AudioPlayer_to_android.cpp sources we've found online contain this particular message.
In terms of Audio system infrastructure, we are using a custom implementation of XACT which we initially ported from DirectSound to openAL and now to OpenSLES. We are solely using the android buffer queue and PCM data either from raw source or CPU decoded OGG. All OpenSL operations happen on the Native Application thread except for buffer enqueuing for streaming audio. The application itself uses the NativeActivity and Android NDK provided glue (building against android9). We have since moved buffer enqueueing back to the native activity thread but the problem persists.
Anyone else dealt or resolved this? Any insight would be much appreciated.
Best regards,
Stephane
Hi Glenn, Ian,
I believe I have resolved the issue at hand. It seems in some game sequences could result in Play-Stop-Play to be called relatively fast on a single audio player. This was the case when preparing and scheduling tracks for multi dialog cut-scenes. But in some cases, this would cause a stall. Seems similar to http://code.google.com/p/android/issues/detail?id=3197 though this particular case was more sporadic and difficult to isolate.
Thank you both for your insight and help.
Kind regards,
Stephane Jacoby
On Monday, 30 July 2012 11:16:49 UTC-7, step_jac wrote:Hi Glenn,
We finally got a debug build of HC 3.2 up and running. Unfortunately, it did not yield more information on the issue.
Thanks for your response.
Best,
Stephane
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/Y3dp4AW7MJsJ.--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
To unsubscribe from this group, send email to android-ndk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/android-ndk/-/Rr5FZ1Za58wJ.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.