Memory management

It is important to call audio.dispose() on your loaded audio when you are completely done with the audio file. Doing so allows you to recover the memory.

The audio.dispose() function releases the audio memory associated with the handle.

The syntax is audio.dispose( audioHandle ).

The parameter is as follows:

For example:

You have just learned how to dispose audio files properly to recover memory in your application. Try the following: