snd_remove(SOUND*)

Removes a sound at runtime. Together with snd_create, this instruction can be used for temporarily playing large sound files when media_play can not be used (for instance because the sound files have to be stored in a resource file).

Speed:

medium

Example:

var oggsound;
var ogghandle;
...
oggsound = snd_create("test.ogg");
// play the sound
ogghandle = snd_play(oggsound,100,50);
// wait until finished
while (snd_playing(ogghandle)) { wait(1); }
// remove the sound
snd_remove(oggsound);

See also:

sound, snd_create