Difference between revisions of "LlSetSoundQueueing/fr"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{Issues/SVC-4260}}{{LSL_Function/boolean/fr|attente|pd=mise en attente du son:|fd=désactivé (défaut)|bool=*}}
{{Issues/SVC-4260}}{{LSL_Function/boolean/fr|attente|pd=mise en attente du son:|td=activée|fd=désactivé (défaut)|bool=*}}
{{LSL_Function/fr
{{LSL_Function/fr
|func_id=208|func_sleep=0.0|func_energy=10.0
|func_id=208|func_sleep=0.0|func_energy=10.0
Line 10: Line 10:
|caveats=
|caveats=
*Il semblerait que seulement deux sons peuvent être mis en attente pour chaque prim. [[#SVC-4260|SVC-4260]]
*Il semblerait que seulement deux sons peuvent être mis en attente pour chaque prim. [[#SVC-4260|SVC-4260]]
*Sound queuing is a property of the prim, not the script. It can be activated and deactivated by any script in the prim and survives script reset, rerez and script removal.
*La mise en file d'attente des sons est une propriété de la prim, pas du script. Elle peut être activée ou desactivée par n'importe quel script dans la prim. Elle survit à la réinitialisation, au rezzage et à la suppression du script.
*If used to make smooth transitions using slave/master sounds the sounds tend to go out of sync.
*If used to make smooth transitions using slave/master sounds the sounds tend to go out of sync.
|constants
|constants

Revision as of 09:18, 22 January 2011

Description

Fonction: llSetSoundQueueing( integer attente );

Détermine si les sons attachés attendent que le son en cours se termine. Si attache vaut TRUE, la mise en attente est activée, s'il vaut FALSE, la mise en attente est désactivée. Par défaut, la mise en attente des sons est désactivée.

• integer attente boolean, mise en attente du son: TRUE activée, FALSE désactivé (défaut)

Avertissements

  • Il semblerait que seulement deux sons peuvent être mis en attente pour chaque prim. SVC-4260
  • La mise en file d'attente des sons est une propriété de la prim, pas du script. Elle peut être activée ou desactivée par n'importe quel script dans la prim. Elle survit à la réinitialisation, au rezzage et à la suppression du script.
  • If used to make smooth transitions using slave/master sounds the sounds tend to go out of sync.

Exemples

<lsl> default {

   state_entry()
   {
       llPreloadSound("SoundName1");//This loads the sounds into all in range viewers and cuts delay between sounds.
       llPreloadSound("SoundName2");//All sound parameters can be the name of a sound in the prim's inventory or a UUID of a sound");
   }
   touch_start(integer detected)
   {
       llSetSoundQueueing(TRUE);//Set to TRUE for queueing and SoundName2 plays after the SoundName1 has ended.
       //Set to FALSE only the second will be played since the prim has only one sound emmiter and the second was called last.
       //Can be set anywhere withing the script (if within an event it will activate when the event is triggered.
       llPlaySound("SoundName1", 1.0);
       llPlaySound("SoundName2", 1.0);
   }

} </lsl>

Voir également

Fonctions

•  llLoopSound/fr
•  llLoopSoundSlave/fr Joue un son en mode attaché.

Notes avancées

Problèmes

   Since llSetSoundQueueing only allows two sounds to be played in queue can it be changed to allow more?
Vous cherchez encore des informations ? Peut-être cette page du LSLwiki pourra vous renseigner.