Don't click here unless you want to be banned.

LSL Wiki : llLoopSoundSlave

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl423.us.archive.org
llLoopSoundSlave(string sound, float volume)

Loops sound indefinitely. sound is a UUID of a sound file, or the name of a sound file if the sound file is in task's inventory. volume is a float between 0 and 1 which defines the volume to play the sound at. If volume is > 1, it is set to 1.

llLoopSoundSlave() can be stopped using llStopSound().
The volume of sounds started with llLoopSoundSlave can be adjusted using llAdjustSoundVolume.

Behavior is identical to llLoopSound, unless there is a "sync master" present. If a sync master is already playing (using llLoopSoundMaster) the slave sound will begin playing from the same point the master is in its loop synchronizing the loop points of both sounds. If a sync master is started when the slave is already playing, the slave will skip to the correct position to sync with the master.

Note: this does not cause sound to play once every time the sync master plays; it only causes sound to start looping at the beginning of a sync master loop, sound then loops normally (that is, as soon as it ends, it starts again).


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Functions | Sound
Comments [Hide comments/form]
A note on the sound llLoopSoundMaster and llLoopSoundSlave functions- it's sort of implied but not initially obvious that they are meant to operate on separate scripts. Calling one and then the other in the same script will behave as though llLoopSound was called twice.
-- ChromalBrodsky (2004-03-08 14:56:33)
"If a sync master is started when the slave is already playing, the slave will skip to the correct position to sync with the master." is not happening for me in 1.14.0.1 ... The slave sound is only starting when the master loops again, and llSetSoundQueueing is not working for me. So it doesn't seem to be "identical to llLoopSound".
-- 216-31-84-18.zianet.com (2007-04-12 05:02:15)
Attach a comment to this page: