I'm trying to write a visualizer for Spotify using the Processing library.
But I have a problem with the audio.RealtimeAnalyzer class.
var analyzer = audio.RealtimeAnalyzer.forPlayer(models.player);
analyzer.addEventListener('audio', function(data){ ... });
If I let this run for an hour Spotify is using more then 1.5GB of memory and eventually crashes. Is there any possibility for dumping or freeing all this unnecessary memory? Or can I solve this issue with using an other class?