<?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_setSoundProperty</id>
		<title>Global Command: setSoundProperty - 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_setSoundProperty"/>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_setSoundProperty&amp;action=history"/>
		<updated>2026-05-23T08:04:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_setSoundProperty&amp;diff=11886&amp;oldid=prev</id>
		<title>EK: Created page with &quot;Set properties of a sound.  {| class=&quot;ts&quot; |- | style=&quot;width:15%&quot; | Related functions | getSoundId | Global Command: getSoundProperty|getSoundP...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.visionaire-tracker.net/index.php?title=Global_Command:_setSoundProperty&amp;diff=11886&amp;oldid=prev"/>
				<updated>2023-05-04T19:16:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Set properties of a sound.  {| class=&amp;quot;ts&amp;quot; |- | style=&amp;quot;width:15%&amp;quot; | Related functions | &lt;a href=&quot;/wiki/Global_Command:_getSoundId&quot; title=&quot;Global Command: getSoundId&quot;&gt;getSoundId&lt;/a&gt; | Global Command: getSoundProperty|getSoundP...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Set properties of a sound.&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: startSound|startSound]] | [[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;
setSoundProperty(soundId, 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;
| soundId&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; | integer&lt;br /&gt;
| Id of the sound to set the properties.&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;
| boolean&lt;br /&gt;
| True if properties were set successfully, false if setting failed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
'''Example 1:''' Set the properties of an active sound.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Sound id can only be retrieved if the sound is active&lt;br /&gt;
local mySoundId = getSoundId(&amp;quot;vispath:sounds/example.ogg&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
setSoundProperty(mySoundId, {flags=1, balance=20, loop=true, offset=100, volume=80})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{toc}}&lt;/div&gt;</summary>
		<author><name>EK</name></author>	</entry>

	</feed>