Skip to content

sp_sound

Version: Dink   Freedink   DinkHD   YeDink

Prototypeint sp_sound(int active_sprite, int sound_number[-1])

sp_sound() gets or sets the sound_number for active_sprite.

Setting a sound is equivalent to playsound(sound_number, 22050, 0, active_sprite, 1) Note that the sound will repeat, and will be attached to the active_sprite.

Dink
1.07
Trying to retrieve the sound number by passing -1 would crash the game.