“LlSetSoundQueueing”的版本间的差异
(创建页面,内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}} {{函数详情 |函数名 = Function: llSetSoundQueueing( integer queue ); |参数= 参数:…”) |
(没有差异)
|
2020年8月13日 (四) 07:22的最新版本
首页 | 函数 | 事件 | 类型 | 操作符 | 常数 | Flow Control | Script Library | Categorized Library | Tutorials |
函数名 |
---|
Function: llSetSoundQueueing( integer queue ); |
参数:
•整数队列–布尔型,声音队列:真启用,假(默认)禁用 |
返回值:设置附加的声音是否等待当前声音结束。如果queue为TRUE,则启用队列,如果禁用FALSE队列。默认情况下禁用声音队列。 |
注意事项 |
---|
似乎每个prim只能排队两个声音。SVC-4260型
声音队列是prim的属性,而不是脚本的属性。它可以被prim中的任何脚本激活和停用,并且可以在脚本重置、重新定位和脚本删除后继续运行。 如果使用从/主声音进行平滑过渡,则声音往往会不同步。 由于网络延迟和处理时间的原因,声音之间的静默间隔非常小(但可以听见)。 排队的声音必须在查看器中完全加载,否则将无法播放。llPreloadSound并不总是可靠的。 将与当前播放的声音相同的声音排队将失败。请改用llLoopSound。 |
示例 |
---|
示例1
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); } } |
相关函数 |
---|
llLoopSound
llLoopSoundSlave–播放附加的声音。 |
相关事件 |
---|