Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
V10lator opened this issue Jun 2, 2021 · 0 comments
Open

Comments

@V10lator
Copy link

V10lator commented Jun 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant