Unofficial LSL Reference

[[articles:sound]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

articles:sound [2015-06-27 19:10 SLT]
sei remove the inworld format stuff
articles:sound [2024-04-29 01:07 SLT] (current)
sei llPlaySound is not looped!
Line 2: Line 2:
 ===== Sound ===== ===== Sound =====
  
-<WRAP tip>This article is about the SL sound clips played directly by scripts, not about the per-parcel streaming audio. See $lart[Audio] if you're looking for information on the latter.</​WRAP>​+<WRAP tip round>This article is about the SL sound clips played directly by scripts, not about the per-parcel streaming audio. See $lart[Audio] if you're looking for information on the latter.</​WRAP>​
  
-Sounds in SL are clips of 10.00 seconds or less. Inworld sounds are 16 bit, mono, 44100 Hz. The currently accepted formats for uploading are:+Sounds in SL are clips of 10.00000 seconds or less. Inworld sounds are 16 bit, mono, 44100 Hz. The currently accepted formats for uploading are:
  
   * WAV, 44100 Hz, 16 bit, mono   * WAV, 44100 Hz, 16 bit, mono
Line 14: Line 14:
  
 When a detached sound is triggered from an attachment, the invisible object will be "​dropped"​ inworld, where the avatar is. In the case of HUDs, this means that detached sounds can be heard by anyone, as opposed to attached sounds in HUDs, which can only be heard by the wearer. When a detached sound is triggered from an attachment, the invisible object will be "​dropped"​ inworld, where the avatar is. In the case of HUDs, this means that detached sounds can be heard by anyone, as opposed to attached sounds in HUDs, which can only be heard by the wearer.
 +
 +The source of the sound is located at that object. The closer to the source, the more intense the sound. If the object moves, a Doppler effect is applied (i.e. the pitch is higher as the object gets closer to the camera, and lower as it gets farther).
  
 ===== Functions related to Sound ===== ===== Functions related to Sound =====
  
-  * $lfn[llPlaySound] plays a looped ​sound attached to this prim.+  * $lfn[llPlaySound] plays a sound attached to this prim.
   * $lfn[llStopSound] stops an attached sound playing in this prim.   * $lfn[llStopSound] stops an attached sound playing in this prim.
   * $lfn[llLoopSound] plays a looped sound attached to this prim.   * $lfn[llLoopSound] plays a looped sound attached to this prim.