Jump to content

Too many sounds playing at once?


HenryCrawford
 Share

You are about to reply to a thread that has been inactive for 4024 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hello people!

 

I seem to be having a problem with a few of my sound scripts which have been carefully placed into the content tab of some trees on my land which I am able to edit. A few of the sounds tend to get bunched up together and end up playing all at once or one right after the other. I've had to re-program the trees by taking the sounds out and then placing them back into the trees one at a time. What is causing this problem and how do I prevent it?

Link to comment
Share on other sites

BTW, here's one way to play multiple sounds from a single script.  They don't overlap, but they do follow each other randomly and with less than regular periodicity.

integer gON;list gBirds = ["a7fa68f4-7296-d5c0-67b5-72f19e73d69b","e03f4cbc-f12b-6f41-9e42-c76769d418ee","7787a668-d441-19d8-3bac-0ee43b0a2cf6","e2bf9b63-8597-2863-50e5-d1bb043a49bc","f5184fd5-a284-20af-4595-ddf70675851c","dbd456fe-7020-bccd-38fe-cf3531446eaa"];default{    touch_start(integer total_number)    {        llSetTimerEvent(1.0 *(gON = !gON));    }        timer()    {        llSetTimerEvent(3.0 + llFrand(10.0));        llPlaySound(llList2Key(gBirds,(integer)llFrand(6.0)),1.0);    }}

 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4024 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...