llAdjustSoundVolume

From Second Life Wiki
Revision as of 02:42, 7 May 2007 by Fox Diller (talk | contribs)
Jump to navigation Jump to search

Summary

Function: llAdjustSoundVolume( float volume );

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.
All Issues ~ Search JIRA for related Bugs

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

Search JIRA for related Issues

Signature

function void llAdjustSoundVolume( float volume );