The Dink Network

Reply to Re: playsound - 3D variable not working?

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
April 25th, 01:10 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
LOOK UPON MY DEFORMED FACE! 
If a sound is bound to a sprite with playsound, it will be updated every frame as per the player's position until that sprite is deactivated somehow, or when changing screens upon which it is halted.

Sounds set looping will always be halted upon changing screens unless set to survive. One-shot sounds will continue until they finish.

Invoking sp_sound is equivalent to playsound set looping bound to the specified sprite, unfortunately locked at 22khz playback sampling rate.

Setting the sound parameter for a screen sprite in map.dat is the same as the aforementioned except if the sprite is set to warp in which case the sound will played one-shot upon warping. If the warp has no sound specified, it will play sound slot 7 at 12khz.

The use of positional looping sounds is apparent in the savebots in the base game, as well as one-shot sounds for the pigs and ducks.