Difference between revisions of "LlSetSoundQueueing/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
(Update translation)
Line 1: Line 1:
{{LSL_Function/boolean/ja|queue|pd=音声の待機:|fd=無効化 (デフォルト)|bool=*}}
{{LSL_Function/ja
{{LSL_Function/ja
|func_id=208|func_sleep=0.0|func_energy=10.0
|func_id=208|func_sleep=0.0|func_energy=10.0
Line 4: Line 5:
|p1_type=integer|p1_name=queue
|p1_type=integer|p1_name=queue
|func_footnote
|func_footnote
|func_desc='''queue'''を用いて、現在の音が終了するまで待ってから、添付された音を呼び出すかどうかを決定します。(Falseが標準です)
|func_desc=現在の音が終了するまで待ってから、添付された音を呼び出すかどうかを決定します。
'''queue''' が {{LSLG/ja|TRUE}} ならば待機が有効に、{{LSLG/ja|FALSE}} ならば無効になります。(Falseが標準です)
|return_text
|return_text
|spec
|spec
|caveats
|caveats=
*同時に待機できる音声は 2 個までのようです。
*音声の待機状態はプリムの属性であり、特定のスクリプトに依存しません。待機状態はプリム内のいかなるスクリプトによっても有効化・無効化可能であり、その状態はスクリプトがリセット・再rez・削除されても保持されます。
|constants
|constants
|examples
|examples=
<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>
|helpers
|helpers
|also_functions
|also_functions=
{{LSL DefineRow||{{LSLG/ja|llLoopSound}}}}
{{LSL DefineRow||{{LSLG/ja|llLoopSoundSlave}}|3={{HoverText|添付された|音はプリムと一緒に移動します}}音を繰り返し再生します。}}
|also_tests
|also_tests
|also_events
|also_events
Line 17: Line 41:
|notes
|notes
|cat1=Sound
|cat1=Sound
|cat2
|cat2=Prim
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 07:08, 25 May 2009

要約

関数: llSetSoundQueueing( integer queue );

現在の音が終了するまで待ってから、添付された音を呼び出すかどうかを決定します。 queueTRUE ならば待機が有効に、FALSE ならば無効になります。(Falseが標準です)

• integer queue 真偽値, 音声の待機: TRUE ならば有効 、 FALSE ならば無効化 (デフォルト)

警告

  • 同時に待機できる音声は 2 個までのようです。
  • 音声の待機状態はプリムの属性であり、特定のスクリプトに依存しません。待機状態はプリム内のいかなるスクリプトによっても有効化・無効化可能であり、その状態はスクリプトがリセット・再rez・削除されても保持されます。
All Issues ~ Search JIRA for related Bugs

サンプル

<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>

関連項目

関数

•  llLoopSound
•  llLoopSoundSlave 添付された音を繰り返し再生します。

特記事項

Search JIRA for related Issues

Signature

function void llSetSoundQueueing( integer queue );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。