User Tools

Site Tools


script:module:audio

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
script:module:audio [2019-12-15 18:11]
skyjake [Functions]
script:module:audio [2019-12-15 18:15] (current)
skyjake [Functions]
Line 9: Line 9:
  #​@Arg_HTML~Number,​volume~@#​ )  #​@Arg_HTML~Number,​volume~@#​ )
  
-Start playing a local sound without any particular emitter object. ​This is useful for example for UI/HUD sound effects.+Start playing a local sound without any particular emitter object. //sound// must be a valid ID of a [[ded:​sound|Sound definition]]. //volume// is the volume of the sound in the range 0...1.
  
-//sound// must be valid [[ded:sound|Sound]] ID. +This is useful for example for UI/HUD sound effects. Use [[script:​module:​world#​World.Thing|World.Thing.startSound()]] to play a sound originating from a [[ded:thing]].
- +
-//volume// is the volume of the sound in the range 0...1.+
  
script/module/audio.1576426298.txt.gz · Last modified: 2019-12-15 18:11 by skyjake