Difference between revisions of "StartSound"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 54: Line 54:
  
 
none
 
none
 
+
{{i18n|StartSound}} <br/>
<div style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"><b>Relevant Pages</b>: ... links here</div>
+
{| style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"
{{i18n|StartSound}}
+
|-
 +
|<b>Relevant Pages</b>: ... links here
 +
|}

Revision as of 17:53, 8 March 2013

Command History

Available since v3.8


Allows you to play sound files; with optional property values!

Additional Info

Currently available properties:
  • volume (allows you to set volume level)
  • balance (allows you to set left/right balance)
  • offset (allows you to start audio file from x time; in ms)
  • loop (allows you to loop the audio file)


Syntax:

startSound("filename", {flags=1, properties})


Example 1: basic play audio file method

n/a

Example 2: ...

n/a


Arguments

filename: path
The path to the audio file to be played! ("path/filename.type")


Flags

properties

  • volume: allows you to set volume level via an integer value
  • balance: allows you to set the left/right audio balance via an integer value (-1000/0/1000)
  • offset: allows you to start audio file from x time via an integer value (in ms)
  • loop: allows you to declare if audio file should loop via a boolean value (true/false)


Return

none


Relevant Pages: ... links here