Difference between revisions of "LlAdjustSoundVolume"
Jump to navigation
Jump to search
Void Singer (talk | contribs) m (updated lsl tags) |
m |
||
Line 1: | Line 1: | ||
{{LSL_Function/volume|volume}} | {{LSL_Function | ||
|inject-2={{LSL_Function/volume|volume}} | |||
|func=llAdjustSoundVolume | |func=llAdjustSoundVolume | ||
|sort=AdjustSoundVolume | |sort=AdjustSoundVolume | ||
Line 5: | Line 6: | ||
|p1_type=float|p1_name=volume | |p1_type=float|p1_name=volume | ||
|func_footnote | |func_footnote | ||
|func_desc=Adjusts | |func_desc=Adjusts {{LSLP|volume}} of attached sound. | ||
|return_text | |return_text | ||
|spec | |spec |
Revision as of 11:39, 11 June 2012
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llAdjustSoundVolume( float volume );207 | Function ID |
0.1 | Forced Delay |
10.0 | Energy |
Adjusts volume of attached sound.
• float | volume | – | between 0.0 (silent) and 1.0 (loud) (0.0 <= volume <= 1.0 )
|
Caveats
Examples
<lsl> default {
state_entry() { llListen(42, "", llGetOwner(), ""); }
listen(integer chan, string name, key id, string msg) { float value = (float)msg; llAdjustSoundVolume(value); llOwnerSay("Volume set to: " + (string)value + " of 1.0"); }
}
</lsl>