1) On this topic, just to confirm- if one were to call release() on an AudioTrack, would it be instantly released, such that you could then instantiate a new AudioTrack and not increase the number of used tracks- or would it only be released when the garbage collector runs?2) I've got a situation where we have about 12 audiotracks. Sometimes we stop/release and create a new one attempting to keep the number used constant. But we're finding on the Nexus 7 w/Jelly Bean, it's hitting a limit and errors out, as if the tracks aren't being released. Did something change in Jelly Bean, or on the Nexus 7?Thanks!
Glenn,Thanks a lot for the response.Note, I wrote a few more details in a later post because this one wasn't released by the moderator for four days. here's the other post:I haven't actually run adb from code before- should I be doing this through: Process process = Runtime.getRuntime().exec("adb shell dumpsys media.audio_flinger")?
com.google.android.googlequicksearchbox (x4)
If I dump audio_flinger after exiting my app, I only see the following 4 tracks:
When I dump audio_flinger on Nexus One running 2.3.4 I see 1 track belonging to com.android.phone, and 22 belonging to my app.
Could com.google.android.googlequicksearchbox (or the others, not including com.android.phone) be the reason I'm getting failures on Nexus 7/Jelly Bean and not other devices platforms?