<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=Global_Command%3A_startSound</id>
	<title>Global Command: startSound - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.visionaire-tracker.net/index.php?action=history&amp;feed=atom&amp;title=Global_Command%3A_startSound"/>
	<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;action=history"/>
	<updated>2026-11-25T03:13:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=11892&amp;oldid=prev</id>
		<title>EK at 19:46, 4 May 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=11892&amp;oldid=prev"/>
		<updated>2023-05-04T19:46:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:46, 4 May 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Syntax ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Syntax ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;startSound(soundfile[, flags])&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;startSound(soundfile [, flags])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikiVisionaire_new:diff:1.41:old-11889:rev-11892:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>EK</name></author>
	</entry>
	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=11889&amp;oldid=prev</id>
		<title>EK: EK moved page StartSound (CMS) to Global Command: startSound</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=11889&amp;oldid=prev"/>
		<updated>2023-05-04T19:38:32Z</updated>

		<summary type="html">&lt;p&gt;EK moved page &lt;a href=&quot;/wiki/StartSound_(CMS)&quot; class=&quot;mw-redirect&quot; title=&quot;StartSound (CMS)&quot;&gt;StartSound (CMS)&lt;/a&gt; to &lt;a href=&quot;/wiki/Global_Command:_startSound&quot; title=&quot;Global Command: startSound&quot;&gt;Global Command: startSound&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:38, 4 May 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikiVisionaire_new:diff:1.41:old-11888:rev-11889 --&gt;
&lt;/table&gt;</summary>
		<author><name>EK</name></author>
	</entry>
	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=11888&amp;oldid=prev</id>
		<title>EK at 19:38, 4 May 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=11888&amp;oldid=prev"/>
		<updated>2023-05-04T19:38:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Play an audio file; optionally pass property values.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;ts&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width:15%&amp;quot; | Related functions&lt;br /&gt;
| [[Global Command: getSoundId|getSoundId]] | [[Global Command: getSoundProperty|getSoundProperty]] | [[Global Command: setSoundProperty|setSoundProperty]] | [[Global Command: stopSound|stopSound]] | [[Global Command: toggleSoundPause|toggleSoundPause]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
startSound(soundfile[, flags])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;ts&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:15%&amp;quot; | Parameter&lt;br /&gt;
! style=&amp;quot;width:15%&amp;quot; colspan=&amp;quot;2&amp;quot; | Type/Structure&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| soundfile&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | string&lt;br /&gt;
| Relative path to the audio file you want to play. Add the &amp;quot;vispath:&amp;quot; prefix. &lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;5&amp;quot; | flags&lt;br /&gt;
| rowspan=&amp;quot;5&amp;quot; | table&lt;br /&gt;
| flags = 1&lt;br /&gt;
| indicates flags table&lt;br /&gt;
|-&lt;br /&gt;
| balance (int)&lt;br /&gt;
| Set left/right audio balance value in the range of -100 (100% left channel) to 100 (100% right channel).&lt;br /&gt;
|-&lt;br /&gt;
| loop (bool)&lt;br /&gt;
| Set to true to loop the sound.&lt;br /&gt;
|-&lt;br /&gt;
| offset (int)&lt;br /&gt;
| Set the playtime position in milliseconds.&lt;br /&gt;
|-&lt;br /&gt;
| volume (int)&lt;br /&gt;
| Set the volume in the range of 0 (mute) to 100 (full volume).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Return values ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;ts&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! style=&amp;quot;width:15%&amp;quot; | Type&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| integer&lt;br /&gt;
| Unique id referencing the started sound, or -1 if the sound could not be started.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example 1:&amp;#039;&amp;#039;&amp;#039; Play an audio file and store the sound id for later use. Update the left/right balance of the sound while it is playing.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mySoundId = startSound(&amp;#039;vispath:sounds/example.ogg&amp;#039;)&lt;br /&gt;
setSoundProperty(mySoundId, {flags=1, balance=40})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Example 2:&amp;#039;&amp;#039;&amp;#039; Play an audio file and set balance, offset and volume.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
startSound(&amp;#039;vispath:sounds/example.ogg&amp;#039;, {flags=1, balance=-10, offset=1000, volume=70})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{toc}}&lt;/div&gt;</summary>
		<author><name>EK</name></author>
	</entry>
	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=3900&amp;oldid=prev</id>
		<title>AFRLme at 17:03, 28 September 2014</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=3900&amp;oldid=prev"/>
		<updated>2014-09-28T17:03:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:03, 28 September 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l54&quot;&gt;Line 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;filename&amp;lt;/span&amp;gt;: path &amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;filename&amp;lt;/span&amp;gt;: path &amp;lt;br/&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The path to the audio file to be played; &amp;#039;&amp;#039;&amp;#039;vispath:&amp;#039;&amp;#039;&amp;#039; must be included at the beginning of the path.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The path to the audio file to be played; &amp;#039;&amp;#039;&amp;#039;vispath:&amp;#039;&amp;#039;&amp;#039; must be included at the beginning of the path.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight&amp;gt;&quot;vispath:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sounds&lt;/del&gt;/filename.type&quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight&amp;gt;&quot;vispath:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;path&lt;/ins&gt;/filename.type&quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikiVisionaire_new:diff:1.41:old-3899:rev-3900:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>AFRLme</name></author>
	</entry>
	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=3899&amp;oldid=prev</id>
		<title>AFRLme: Created page with &quot;{| class=&quot;toccolours mw-collapsible mw-collapsed ts&quot; |- ! Function History |- | Available since v4.0 |}   Allows you to play sound files; with optional property values. {|clas...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_startSound&amp;diff=3899&amp;oldid=prev"/>
		<updated>2014-09-28T16:58:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| class=&amp;quot;toccolours mw-collapsible mw-collapsed ts&amp;quot; |- ! Function History |- | Available since v4.0 |}   Allows you to play sound files; with optional property values. {|clas...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| class=&amp;quot;toccolours mw-collapsible mw-collapsed ts&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Function History&lt;br /&gt;
|-&lt;br /&gt;
| Available since v4.0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Allows you to play sound files; with optional property values.&lt;br /&gt;
{|class=&amp;quot;toccolours mw-collapsible mw-collapsed ts&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Additional Info&lt;br /&gt;
|-&lt;br /&gt;
| Properties currently available...&lt;br /&gt;
|-&lt;br /&gt;
| volume, balance, offset &amp;amp; loop&lt;br /&gt;
|-&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;Please note that only mono sounds can be panned using the balance property; all stereo channel sounds will remain centered&amp;#039;&amp;#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Syntax:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
startSound(&amp;quot;filename&amp;quot;, {flags=1, properties})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example 1: basic play audio file method&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
startSound(&amp;quot;vispath:sounds/example.ogg&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example 2: again with properties&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
-- play example.ogg at 100% volume level, audio centered, from 1 second mark with loop mode on&lt;br /&gt;
startSound(&amp;quot;vispath:sounds/example.ogg&amp;quot;, {flags=1, volume=100, balance=0, offset=1000, loop=true})&lt;br /&gt;
&lt;br /&gt;
--[[&lt;br /&gt;
let&amp;#039;s say you have an audio file with a duration of 00:03:24 &amp;amp; you want to start the audio file at: 2 minutes &amp;amp; 44 seconds;&lt;br /&gt;
so what we need to do is convert minutes/seconds into ms like so: (2*60)*1000 + (44*1000) = 164000ms&lt;br /&gt;
&lt;br /&gt;
math explanation:&lt;br /&gt;
2m*60s = 120 seconds * 1000ms = 120,000ms | 44s*1000ms = 44,000ms&lt;br /&gt;
120,000 + 44,000 = 164,000ms&lt;br /&gt;
--]]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;bold underline&amp;quot;&amp;gt;Arguments&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;filename&amp;lt;/span&amp;gt;: path &amp;lt;br/&amp;gt;&lt;br /&gt;
The path to the audio file to be played; &amp;#039;&amp;#039;&amp;#039;vispath:&amp;#039;&amp;#039;&amp;#039; must be included at the beginning of the path.&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&amp;quot;vispath:sounds/filename.type&amp;quot;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;bold underline&amp;quot;&amp;gt;Flags&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;bold&amp;quot;&amp;gt;properties&amp;lt;/span&amp;gt;&lt;br /&gt;
* volume: allows you to set volume level via an integer value&lt;br /&gt;
* balance: allows you to set the left/right audio balance via an integer value (-100 to 100; 0 is centered)&lt;br /&gt;
* offset: allows you to start audio file from x time via an integer value (in ms)&lt;br /&gt;
* loop: allows you to declare if audio file should loop via a boolean value (true/false)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span class=&amp;quot;bold underline&amp;quot;&amp;gt;Return&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
none&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;ts&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Relevant Pages&amp;#039;&amp;#039;&amp;#039;: [[GetSoundId_(CMS)|getSoundId]] - [[GetSoundProperty_(CMS)|getSoundProperty]] - [[SetSoundProperty_(CMS)|setSoundProperty]] - [[StopSound_(CMS)|stopSound]] - [[ToggleSoundPause_(CMS)|toggleSoundPause]]&lt;br /&gt;
|}&lt;br /&gt;
{{toc}}&lt;/div&gt;</summary>
		<author><name>AFRLme</name></author>
	</entry>
</feed>