Random crashing? (Destroying sounds after playing)

I have found a solution to my crashes, hopefully this will help others as well. The crash comes when destroying sound objects immediately after they end. This is the core sound function that I use:

blob.jpg

When the wait() line is commented out, crashes occur. Adding in the wait() has gotten rid of all crashes for me.

4 Likes