Jump to content
  • 0
Sign in to follow this  
6b61

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

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

Share this post


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

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...