Open V10lator opened 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.
const uint8_t * snd
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.