Unofficial LSL Reference

[[functions:lladjustsoundvolume]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

functions:lladjustsoundvolume [2014-12-09 10:06 SLT]
sei Add deprecated functions
functions:lladjustsoundvolume [2015-09-22 18:41 SLT] (current)
sei style
Line 6: Line 6:
 </​code>​ </​code>​
  
-Change the volume of the [[/sound]] of the prim the script is in when it is already playing.+Change the volume of the $lart[sound] of the prim the script is in when it is already playing.
  
 $delay[0.1] $delay[0.1]
Line 13: Line 13:
  
 === volume === === volume ===
-A [[types/float]] value indicating the new volume to set, between 0.0 and 1.0.+$lty[float] value indicating the new volume to set, between 0.0 and 1.0.
  
 ===== Notes ===== ===== Notes =====
  
-  * Works only for [[llPlaySound]], [[llLoopSound]], and similar. Does not work for [[llTriggerSound]] or [[llTriggerSoundLimited]].+  * Works only for $lfn[llPlaySound], ​$lfn[llLoopSound],​ and similar. Does not work for $lfn[llTriggerSound] or $lfn[llTriggerSoundLimited].
  
 ===== Short examples ===== ===== Short examples =====
Line 27: Line 27:
 ===== Complete examples ===== ===== Complete examples =====
  
-The following script will start a looped [[/sound]] in the prim, then lower its volume every time it's clicked. When it gets to zero, it wraps around to maximum volume.+The following script will start a looped ​$lart[sound] in the prim, then lower its volume every time it's clicked. When it gets to zero, it wraps around to maximum volume.
 <file lsl2 llAdjustSoundVolume-example.lsl>​ <file lsl2 llAdjustSoundVolume-example.lsl>​
 float vol = 1; float vol = 1;
Line 52: Line 52:
 ===== See also ===== ===== See also =====
  
-  * [[llStopSound]] stops a sound playing in this prim. +  * $lfn[llStopSound] stops a sound playing in this prim. 
-  * [[llPlaySound]] plays a sound in this prim. +  * $lfn[llPlaySound] plays a sound in this prim. 
-  * [[llLoopSound]] plays a looped sound in this prim. +  * $lfn[llLoopSound] plays a looped sound in this prim. 
-  * [[llLoopSoundMaster]] plays a looped sound letting others synchronize with it. +  * $lfn[llLoopSoundMaster] plays a looped sound letting others synchronize with it. 
-  * [[llLoopSoundSlave]] plays a looped sound synchronized with a master. +  * $lfn[llLoopSoundSlave] plays a looped sound synchronized with a master. 
-  * [[llPlaySoundSlave]] plays a sound synchronized with a master. +  * $lfn[llPlaySoundSlave] plays a sound synchronized with a master. 
-  * <wrap important>​[[llSetSoundRadius]]</​wrap>​ adjusts how far the prim sounds can be heard. +  * <wrap important>​$lfn[llSetSoundRadius]</​wrap>​ adjusts how far the prim sounds can be heard. 
-  * [[llSetSoundQueueing]] adjusts whether sounds are enqueued in this prim. +  * $lfn[llSetSoundQueueing] adjusts whether sounds are enqueued in this prim. 
-  * [[llTriggerSound]] "​drops"​ a sound where the prim is. +  * $lfn[llTriggerSound] "​drops"​ a sound where the prim is. 
-  * [[llTriggerSoundLimited]] "​drops"​ a sound where the prim is, with limited reach. +  * $lfn[llTriggerSoundLimited] "​drops"​ a sound where the prim is, with limited reach. 
-  * [[llPreloadSound]] causes a sound to be preloaded, for faster playing. +  * $lfn[llPreloadSound] causes a sound to be preloaded, for faster playing. 
-  * <wrap important>​[[llSound]]</​wrap>​ plays a sound in this prim (deprecated - use [[llPlaySound]] instead). +  * <wrap important>​$lfn[llSound]</​wrap>​ plays a sound in this prim (deprecated - use $lfn[llPlaySound] instead). 
-  * <wrap important>​[[llSoundPreload]]</​wrap>​ causes a sound to be preloaded (deprecated - use [[llPreloadSound]] instead). +  * <wrap important>​$lfn[llSoundPreload]</​wrap>​ causes a sound to be preloaded (deprecated - use $lfn[llPreloadSound] instead). 
-  * [[/Sound]] (general information)+  * $lart[Sound] (general information)