StartSound: Difference between revisions
From The Official Visionaire Studio: Adventure Game Engine Wiki
Created page with "<div class="toccolours mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"> <b>Command History</b> <div class="mw-collapsible-co..." |
No edit summary |
||
| Line 6: | Line 6: | ||
Allows you to | Allows you to play sound files; with optional property values! | ||
<div class="toccolours mw-collapsible mw-collapsed" style="background: #f0f0f0; border: 1px dashed darkgrey" width="100%"> | |||
<b>Additional Info</b> | |||
<div class="mw-collapsible-content"> | |||
<div>Currently available properties: <br/> | |||
* 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)</div> | |||
</div></div> | |||
Syntax: | Syntax: | ||
<syntaxhighlight> | <syntaxhighlight> | ||
startSound("filename") | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Example 1: basic | Example 1: basic play audio file method | ||
<syntaxhighlight | <syntaxhighlight> | ||
n/a | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Example 2: | Example 2: ... | ||
<syntaxhighlight> | <syntaxhighlight> | ||
n/a | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 40: | Line 38: | ||
<b><u>Arguments</u></b> | <b><u>Arguments</u></b> | ||
<b>filename</b>: path <br/> | |||
The path to the | The path to the audio file to be played! ("path/filename.type") | ||
<b><u>Flags</u></b> | |||
none | |||
<b><u>Return</u></b> | |||
<b>visionaireObject</b> <br/> | |||
The visionaire object representing the active action! | The visionaire object representing the active action! | ||
{{i18n|StartSound}} | {{i18n|StartSound}} | ||
Revision as of 17:38, 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")
Example 1: basic play audio file method
n/aExample 2: ...
n/a
Arguments
filename: path
The path to the audio file to be played! ("path/filename.type")
Flags
none
Return
visionaireObject
The visionaire object representing the active action!