Difference between revisions of "LlAdjustSoundVolume/fr"

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

Latest revision as of 19:49, 11 April 2015

Description

Fonction: llAdjustSoundVolume( float volume );

Ajuste le volume du son attaché.

• float volume entre 0.0 (silencieux) et 1.0 (fort) (0.0 <= volume <= 1.0)

Avertissements

  • Cette fonction fait dormir le script pendant 0.1 secondes.

Exemples

default
{
    state_entry()
    {
        llListen(42, "", llGetOwner(), "");
    }

    listen(integer chan, string name, key id, string msg)
    {
        float value = (float) msg;

        llAdjustSoundVolume(value);
        llOwnerSay("Volume : " + (string) value + " / 1.0");
    }
}
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.