OsAdjustSoundVolume

From OpenSimulator

Revision as of 07:47, 4 November 2018 by Kcozens (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
osAdjustSoundVolume(LSL_Integer linknum, LSL_Float volume)
Adjust the volume of attached sound for a prim in a linkset.
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0.1 seconds
Example(s)
// Example use of osAdjustSoundVolume
 
integer which_prim = 2;
 
default
{
    state_entry()
    {
        llListen(10, "", llGetOwner(), "");
    }
 
    listen(integer channel, string name, key id, string msg)
    {
        float volume = (float)msg;
        llAdjustSoundVolume(volume);
        llOwnerSay("Volume in prim " + (string)which_prim + " was set to " + (string)volume);
    }
}
Notes
This function was added in 0.9.0.1


Personal tools
General
About This Wiki