forked from MoonsideGames/FAudioGMS
18 lines
387 B
Plaintext
18 lines
387 B
Plaintext
/// @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();
|