Jump to content

Properly remove music cache


fitness23
 Share

Recommended Posts

I noticed that there is a post which resembled the problem that I am currently going through regarding music cache = http://www.html5gamedevs.com/topic/19075-how-do-i-actually-remove-an-audio-file-from-memory/
 
I was wondering if anybody knew of a way to fully remove the cache of a music file as the memory just seems to go up and up on my game. I currently use all of these below lines but none of them seem to fully remove the cache:
 
backgroundMusic.stop();
backgroundMusic.destroy();
backgroundMusic = null;
this.game.cache.removeSound(gameData.rooms[i].musicID);

 
I currently use v2.4.3.
Any help you can provide would be fantastic :)
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...