Difference between revisions of "LlAdjustSoundVolume"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 12: Line 12:
|constants
|constants
|examples=
|examples=
<lsl>
<source lang="lsl2">
default
default
{
{
Line 27: Line 27:
     }
     }
}
}
</lsl>
</source>
|helpers
|helpers
|also_functions
|also_functions

Revision as of 22:16, 21 January 2015

Summary

Function: llAdjustSoundVolume( float volume );
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

  • This function causes the script to sleep for 0.1 seconds.

Examples

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");
    }
}

Deep Notes

History

Footnotes

  1. ^ Early release notes were not very accurate or thorough, they sometimes included information about features added in previous releases or failed to include information about features added in that release.

Signature

function void llAdjustSoundVolume( float volume );