Sounds (Content Creation)

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(Added a little bit of actual content)
Line 1: Line 1:
''This is a quick copy from the Artist Home page. Serious editing needed''
+
Sounds clips can be used within (scripted) objects and as part of [[Gestures (Content Creation)|gestures]].
  
Sounds clips can be used within (scripted) objects and as part of gestures. Current OpenSimulator sound formats are PCM WAVE (.wav) 16-bit/44.1KHz/mono or stereo with a maximum length of 10.00 seconds.
+
Currently OpenSimulator supports sound files in PCM WAVE (.wav) 16-bit/44.1KHz/mono or stereo format. The maximum length is 10.00 seconds although it's generally recommended to keep them a fraction shorter.
  
 
*[[Tools (Content Creation)#Sounds|Tools]]
 
*[[Tools (Content Creation)#Sounds|Tools]]
 
*[[Content Collections#Sounds|Content Collections]]
 
*[[Content Collections#Sounds|Content Collections]]
  
=== Best Practices ===
+
== Script functions ==
 +
The yEngine, the script engine used by recent version of Opensimulator, supports all sound related LSL functions as well as several OSSL functions unique to opensim. Some of the OSSL function are duplicates of the similarly named LSL ones, the others add a link parameter but are other wise identical to the corresponding LSL ones.
  
=== Guides ===
+
The earlier xEngine may not support all opensim specific functions. A list of all sound related functions, sorted alphabetically, ignoring the prefix. Duplicate functions are listed on the same line. Links to LSL functions (with the prefix ll) lead to Second Life's LSL wiki, links to unique OSSL functions (with the prefix os) to pages on this wiki:
  
=== Examples ===
+
* [https://wiki.secondlife.com/wiki/LlAdjustSoundVolume llAdjustSoundVolume]
 +
* [https://wiki.secondlife.com/wiki/LlCollisionSound llCollisionSound] / [[OsCollisionSound|osCollisionSound]]
 +
* [https://wiki.secondlife.com/wiki/LlAdjustSoundVolume llLinkAdjustSoundVolume] / [[OsAdjustSoundVolume|osAdjustSoundVolume]]
 +
* [https://wiki.secondlife.com/wiki/LlLinkPlaySound llLinkPlaySound]
 +
* [https://wiki.secondlife.com/wiki/LlLoopSound llLoopSound]
 +
* [[OsLoopSound|osLoopSound]]
 +
* [https://wiki.secondlife.com/wiki/LlLoopSoundMaster llLoopSoundMaster]
 +
* [[OsLoopSoundMaster|osLoopSoundMaster]]
 +
* [https://wiki.secondlife.com/wiki/LlLoopSoundSlave llLoopSoundSlave]
 +
* [[OsLoopSoundSlave|osLoopSoundSlave]]
 +
* [https://wiki.secondlife.com/wiki/LlPlaySound llPlaySound]
 +
* [[OsPlaySound|osPlaySound]]
 +
* [https://wiki.secondlife.com/wiki/LlPlaySoundSlave llPlaySoundSlave]
 +
* [[OsPlaySoundSlave|osPlaySoundSlave]]
 +
* [https://wiki.secondlife.com/wiki/LlPreloadSound llPreloadSound]
 +
* [[OsPreloadSound|osPreloadSound]]
 +
* [https://wiki.secondlife.com/wiki/LlSetSoundQueueing llSetSoundQueueing]
 +
* [https://wiki.secondlife.com/wiki/LlSetSoundRadius llSetSoundRadius]
 +
* [https://wiki.secondlife.com/wiki/LlSetSoundRadius llLinkSetSoundRadius] / [[OsSetSoundRadius|osSetSoundRadius]]
 +
* [https://wiki.secondlife.com/wiki/LlSound llSound] (depreceated)
 +
* [https://wiki.secondlife.com/wiki/LlSoundPreload llSoundPreload] (depreceated)
 +
* [https://wiki.secondlife.com/wiki/LlStopSound llStopSound]
 +
* [https://wiki.secondlife.com/wiki/LlStopSound llLinkStopSound]
 +
* [[OsStopSound|osStopSound]]
 +
* [https://wiki.secondlife.com/wiki/LlTriggerSound llTriggerSound]
 +
* [[OsTriggerSound|osTriggerSound]]
 +
* [https://wiki.secondlife.com/wiki/LlTriggerSoundLimited LlTriggerSoundLimited]
 +
* [[OsTriggerSoundLimited|osTriggerSoundLimited]]
  
=== Projects ===
+
== Names, UUIDs and storage ==
 +
A script can call a sound by name or UUID. If it's called by name, the script has to be stored in the object along with the script. This is not necessary if it's called by UUID but it's still usually recommended due to the potential issues of retrieving assets from a different grid.
 +
 
 +
== Client sounds ==
 +
These are mainly the default alert sounds used by the viewers. There is a list of the ones used by second life at https://wiki.secondlife.com/wiki/Client_sounds. Some of these are also available on opensim but not all of them so test them before you use them.

Revision as of 15:29, 27 May 2023

Sounds clips can be used within (scripted) objects and as part of gestures.

Currently OpenSimulator supports sound files in PCM WAVE (.wav) 16-bit/44.1KHz/mono or stereo format. The maximum length is 10.00 seconds although it's generally recommended to keep them a fraction shorter.

Script functions

The yEngine, the script engine used by recent version of Opensimulator, supports all sound related LSL functions as well as several OSSL functions unique to opensim. Some of the OSSL function are duplicates of the similarly named LSL ones, the others add a link parameter but are other wise identical to the corresponding LSL ones.

The earlier xEngine may not support all opensim specific functions. A list of all sound related functions, sorted alphabetically, ignoring the prefix. Duplicate functions are listed on the same line. Links to LSL functions (with the prefix ll) lead to Second Life's LSL wiki, links to unique OSSL functions (with the prefix os) to pages on this wiki:

Names, UUIDs and storage

A script can call a sound by name or UUID. If it's called by name, the script has to be stored in the object along with the script. This is not necessary if it's called by UUID but it's still usually recommended due to the potential issues of retrieving assets from a different grid.

Client sounds

These are mainly the default alert sounds used by the viewers. There is a list of the ones used by second life at https://wiki.secondlife.com/wiki/Client_sounds. Some of these are also available on opensim but not all of them so test them before you use them.

Personal tools
General
About This Wiki