Well, you should probably change the play into a looping play. I don't remember the function off the top of my head, but that's what you need to do, and it should be before the while loop.

On 2/10/2012 4:52 PM, Il primo cittadino wrote:
Hi Hayden and all.
Now the scripts works but the sound is a bit buzzing and it has a small gap each time it finishes and starts again.
The scripts goes like this:

***
void main()
{
show_game_window("Suono 1.0");
sound suono;
suono.load("1sec_beep.ogg");
int vol=0; int pan=0; int pic=100;
suono.volume=vol; suono.pan=pan; suono.pitch=pic;
while(key_pressed(KEY_ESCAPE)==false)
 { suono.play();
 if (key_down(KEY_LEFT)==true)
  {pan--;}
 if (key_down(KEY_RIGHT)==true)
  {pan++;}
 if (key_down(KEY_DOWN)==true)
  {pic--;}
 if (key_down(KEY_UP)==true)
  {pic++;}
 suono.pan=pan; suono.pitch=pic;
 wait(10);
 }
 suono.stop();
}
***

Is there a way to get the sound more smooth?
Thanks.
Gabriele.

---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].


---
Gamers mailing list __ [email protected]
If you want to leave the list, send E-mail to [email protected].
You can make changes or update your subscription via the web, at
http://mail.audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/[email protected].
If you have any questions or concerns regarding the management of the list,
please send E-mail to [email protected].

Reply via email to