audio_free_buffer_sound

Frees the buffered sound.

Syntax:

audio_free_buffer_sound(index);


Argument Description
index The index of the buffered sound to free.


Returns: N/A


Description

With this function you can free up the pointer index value associated with the sound ID. Freed sounds will not be available for playing, and if multiple instances of the sound are being played they will all be stopped. Note that before you can delete the buffer itself, you must first free all sound ID's associated with it.


Example:

audio_free_buffer_sound(soundID);

The above code frees the buffered sound indexed in the variable "soundID".


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