audio_destroy_stream

Remove the given audio stream from memory.

Syntax:

audio_destroy_stream(filename);


Argument Description
filename The file to stream the audio from.


Returns: NA


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.


Example:

audio_destroy_stream(snd);

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


Back: Audio
Next: audio_sound_set_track_position
© Copyright YoYo Games Ltd. 2018 All Rights Reserved