New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to clean up memory of a song in order to load the next one #76
Comments
Thanks for your report, could you maybe try downloading this library test build (just extract it into your Arduino/libraries folder) and make sure you explicitly call |
Thanks for your quick response. I've created following test sketch and it worked great:
Unfortunately, it's still crashing in my program. I guess it's because of the variable scope. I use the SoundFile in a class. Maybe it doesn't get cleaned up as long as the object is still around. I'll work around this and use a global variable. |
Hi, |
I'm using Processing 4.1.1 in Android mode. I've downloaded the latest library from here and it works much better than the built-in one. Now I can open larger song and run it in correct speed. Thanks for the fix.
I'm currently facing an issue. I can't load next song because it runs out of memory. I tried to use removeFromCache(), assign null to my SoundFile and do System.gc(). Nothing helped.
My question, is there a way to force a memory release before I create the next SoundFile?
The text was updated successfully, but these errors were encountered: