Minim and Real Memory / Memory
in
Core Library Questions
•
3 months ago
Hi Guys,
it seems that there are several issues concerning the Minim Library and Memory Issues.
My application starts at 70mb Real Memory and then loads ca. 1Mb each 20sec...
Is there a general way to flush / clean memory in any way while the java applet is running (eg. in a pause were no audio is playing)?
I am loading constantly different mp3s into a AudioPlayer instance, since I can't seem to load more then 32 files at the startup, so I figured to load them in run-time. After each one is played I call the stop(); function
- void draw(){
- .....
- voiceSampleSingle = minim.loadFile( folder + "/" + filenames[chosenItem], 512);
- voiceSampleSingle.rewind();
- voiceSampleSingle.play();
- // after it's played to the end
- stopMinim();
- }
- void stopMinim()
- {
- voiceSampleSingle.close();
- minim.stop();
- super.stop();
- println("Minim Stopped");
- }
1