The Dink Network

Reply to playsound() question

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:
 
 
January 12th 2008, 07:43 PM
dinkdead.gif
If I use the following script no sound is heard, but if I change the &current_sprite in playsound to 0, it works (but is not 3D). It makes no difference if the sound_set_vol() part is used or not.

How do I get the 3D effect to work?

void main (void)
{
sp_nodraw(&current_sprite, 1);
sp_nohit(&current_sprite, 1);
int &qfall = playsound(12, 22050, 0, &current_sprite, 1);
sound_set_vol(&qfall, -2750);
}