You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that loading a sound file via LoadSound() and then sub-sequentially using UnloadSound() doesn't unload the sound data from memory and causes a memory leak. I found this via Visual Studio 2019 on the memory monitor using Raylib 4.5 in C++.
This is pretty straightforward to reproduce:
First, simply load a sound file with LoadSound() into a Sound variable, e.g. Sound sfx = LoadSound(file_path.c_str()); .
Then use UnloadSound on sfx and loop the process and see the memory usage skyrocket.