[android-developers] Re: Memory leak in AudioTrack?

2009-07-11 Thread blindfold
I now ran into the very same problem on my ADP phone as well after applying settings for more strict JNI checking: by default, JNI checking is active on the emulator but not on the phone, so that is why I did not readily see it on the phone until activating JNI checking there for unrelated

[android-developers] Re: Memory leak in AudioTrack?

2009-07-05 Thread Morné Pistorius
Ah, thanks for the hint. I assumed the same thing would happen on the device, but never checked it outside the emulator... Regards, Morne On Jul 3, 5:54 pm, blindfold seeingwithso...@gmail.com wrote: I should add that I only see the GREF count increasing with the emulator, not when I run my

[android-developers] Re: Memory leak in AudioTrack?

2009-07-03 Thread blindfold
Yes, I'm facing the exact same problem. It looks like a bug in AudioTrack. For me the GREF count seems to increase by 2 for every creation and use of AudioTrack, and it never goes down. I do not see this problem when instead creating and using MediaPlayer (and writing synthesized sound to flash

[android-developers] Re: Memory leak in AudioTrack?

2009-07-03 Thread blindfold
I should add that I only see the GREF count increasing with the emulator, not when I run my app on the ADP (connected via USB). On the ADP I did even after over 300 AudioTrack creations not get the message that GREF count went above 101 or whatever. I use SDK 1.5 r2 and my ADP has Cupcake.