audio_destroy_stream


Description

If you have previously created an audio stream from a file using the function audio_create_stream() and no longer need that sound, you can call this function to delete it from memory. Any further calls to the sound index after it has been destroyed will give an error.

IMPORTANT! This function is not available with the Trial Licence of the product.


Syntax:

audio_destroy_stream(filename);


Argument Description
filename The file to stream the audio from.


Returns:

NA


Example:

audio_destroy_stream(snd);

The above code removes the sound indexed in the variable "snd" from memory.