/// @description Clean up all resources when the game is about to end. /* Destroy sound instances first: */ // sndInst.Stop(); // sndInst.Destroy(); // sndInst = undefined; /* Only then destroy static sounds: */ // snd.Destroy(); // snd = undefined; /* And only then, destroy effect chains */ effChain.Destroy(); effChain = undefined; /* Finish up the system */ FAudioGMS_Destroy();