Difference between revisions of "StartSound"

From The Official Visionaire Studio: Adventure Game Engine Wiki
Line 53: Line 53:
 
<b><u>Return</u></b>
 
<b><u>Return</u></b>
  
<b>visionaireObject</b> <br/>
+
none
The visionaire object representing the active action!
+
 
 +
<div style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"><b>Relevant Pages</b>: ... links here</div>
 
{{i18n|StartSound}}
 
{{i18n|StartSound}}

Revision as of 17:50, 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