wiiu-env / libgui

7 stars 3 forks source link

GuiSound cashing after some time if constructor with path gets used #17

Open V10lator opened 3 years ago

V10lator commented 3 years ago

If you use this constructor for loading backgound music it crashes after a random time of playback: https://github.com/wiiu-env/libgui/blob/master/source/gui/GuiSound.cpp#L23

A workaround is to handle the file loading in your app, using this constructor ( https://github.com/wiiu-env/libgui/blob/master/source/gui/GuiSound.cpp#L28 ) and holding the buffer (const uint8_t * snd) untill the GuiSound has been deleted.