Jump to content
  • 0

anyone know something about this AMPLIFIER script & how it works?


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

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

Question

  • 0

Yes.

The meat of the script is this function call: llLoopSoundSlave. The rest is waste, leftover from the Hello Avatar template.

All it does is play samples on top of each other (using slave scripts) and waste processing overhead.

Please try to use the Insert Code button (it looks like "</>") in future, reading un-indented code is painful.

  • Like 2
Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Yes.

The meat of the script is this function call: llLoopSoundSlave. The rest is waste, leftover from the Hello Avatar template.

All it does is play samples on top of each other (using slave scripts) and waste processing overhead.

Please try to use the Insert Code button (it looks like "</>") in future, reading un-indented code is painful.

  • Like 2
Link to post
Share on other sites
  • 0

I wouldn't call that an amplifier so much as a repeater. For that script to work, there must be another prim within earshot that's playing something via llLoopSoundMaster(), as Freya mentioned. If you are trying to extend the range of a sound source, you'll have to consider how that source works. If it's constantly looping the same sound, then using llLoopSoundSlave() will work. Even if the master source starts and stops, so long as it plays the same sound I think this would work. Absent any master, the slaves would all go quiet and wait for a sync signal. When you start a master sound, they should all sync and play.

But, if the master sound source switches sounds (by starting and stopping llLoopSoundMaster() and changing the audio file/UUID), you'll have to arrange a synchronizing mechanism to inform the slave objects of the sound file/UUID change. I've not used this mechanism, but I think that if you broadcast a message to all slaves, giving them the audio fie name (which must be in their inventory) or a UUID to a sound file, the slave scripts can then fire llLoopSoundSlave() which will wait for a trigger from the nearest master. If you then start your sound via llLoopSoundMaster, I think all the slaves would start in sync.

You'll have to try it and listen.

Here's another page to read...

http://wiki.secondlife.com/wiki/LlLoopSoundMaster

  • Like 2
Link to post
Share on other sites
  • 0

You might also try looking the the online script library as well. This is really a basic script that only repeats what is given to it. As Fraya mentioned it has a lot of wasteful overhead and isn't exactly an ideal script for what you wish to do. You will have to kind of experiment and see what will work best.

  • Like 1
Link to post
Share on other sites
You are about to reply to a thread that has been inactive for 1977 days.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...