
I'm working on a platformer game and recently changed how music works. Currently the method is a bit overkill for what I need as right now I'm not using any specific looping points for anything but I have it in place since I plan to use that once I write better music for it. The problem I'm running into now is extremely unusual: after about 5-10 minutes of playing the game randomly stops playing music and some sound effects at random. This seems like I've got a memory leak somewhere but I can't track down where, and task manager doesn't seem to be indicating a high enough memory usage for that, so I'm at a loss as to what to do. I've attached the version of the game this is an issue with, just jump into any level (you can type "colours" on the main menu and click "ulock" to force all levels to be unlocked) and play for a while, switch screens a bunch to speed up the process. I've tried isolating this problem and I have no idea what's causing it, so if anyone has some insight that would be great.