Difference between revisions of "LlSound"

From Second Life Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
{{LSLFunctionAll|func_id=85|func_sleep=0.0|func_energy=10.0|func=llSound|p1_type=string|p1_name=sound|p2_type=float|p2_name=volume|p3_type=integer|p3_name=queue|p4_type=integer|p4_name=loop|func_footnote=plays sound at volume and whether it should loop or not|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function
|func_id=85|func_sleep=0.0|func_energy=10.0
|func=llSound
|p1_type=string|p1_name=sound|p1_desc=inventory name or UUID
|p2_type=float|p2_name=volume|p2_desc=value between 0 (silent) and 1 (loud).
|p3_type=integer|p3_name=queue|p3_desc=boolean, weather or not to queue the song ({{LSLG|TRUE}}) or interrupt the playing song ({{LSLG|FALSE}}).
|p4_type=integer|p4_name=loop|p4_desc=boolean, weather or not to loop the song.
|func_footnote
|func_desc=Plays '''sound''' at '''volume''' and whether it should '''loop''' or not.
|return_text
|spec
|caveats
|constants
|examples
|helpers
|also_functions
|also_events
|also_tests
|also_articles
|notes
|permission
|negative_index
|deprecated=llPlaySound
|cat1=Sound
|cat2
|cat3
|cat4=Stub
}}

Revision as of 21:01, 9 February 2007

Emblem-important.png Deprecated
(This function has been deprecated, please use llPlaySound instead.)

Summary

Function: llSound( string sound, float volume, integer queue, integer loop );
0.0 Forced Delay
10.0 Energy

Plays sound at volume and whether it should loop or not.

• string sound inventory name or UUID
• float volume value between 0 (silent) and 1 (loud).
• integer queue boolean, weather or not to queue the song (TRUE) or interrupt the playing song (FALSE).
• integer loop boolean, weather or not to loop the song.

Caveats

  • This function has been deprecated, please use llPlaySound instead.

Examples

Deep Notes

Signature

function void llSound( string sound, float volume, integer queue, integer loop );