Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
iOS OpenAL memory leak when playing Sound many times — Gideros Forum

iOS OpenAL memory leak when playing Sound many times

EricCarrEricCarr Member
edited August 2018 in Bugs and issues
Memory testing my platformer and noticed every time two sounds (.wav) play together (or even the same sound over and over in a short period of time), it a creates memory leak when monitoring in the Instruments app.

OALSource:AddPlaybackMessage

This was happening on an older player (2017.11?) so I updated to the latest (2018.6.3) and the issue still is there. I'm guessing it's been there since the switch to openAL.

This url suggests a possible fix:

https://stackoverflow.com/questions/8709274/openal-leak-oalsourceaddplaybackmessage

Other details: In my platformer (similar to mario), there are tons of sounds playing, so it adds up quickly.

Usually after a few hours of testing, after leaving the app and returning to it, sometimes no sounds will play and I have to kill the app to get sounds working (mp3 playing in the background works fine).

I cache all sounds into a global variable and issue : play() on them as needed.

Thanks,
Eric
+1 -1 (+3 / -0 )Share on Facebook

Comments

Sign In or Register to comment.