audio_destroy_stream


描述

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.

NOTE: This functionality is not available for the HTML5 target platform.
重要!该函数在试用版(Trial License)产品中可用。


语法:

audio_destroy_stream(filename);


参数 描述
filename The file to stream the audio from.


Returns:

N/A(无返回值)


例如:

audio_destroy_stream(snd);

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