Skip to content

sp_sound

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.08

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

Dink
1.08
Freedink
all

No longer crashes the game when attempting to retrieve the sound number by passing a -1.