Appearance
sound_set_kill
Prototypevoid sound_set_kill(int soundbank)
sound_set_kill()
will stop playing the sound using the given soundbank.
Note that the soundbank is not the sound number used to declare a sound, but rather the number returned by playsound.
c
// Example of playing the first second of a sound
int &soundbank = playsound(87, 22050, 0, 0, 1);
wait(1000);
sound_set_kill(&soundbank);
WARNING
Freedink
109.6
Playsound will return the soundbank number plus 1. To get the actual soundbank number of the sound, you must minus 1 from the returned value.