<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://oxeyegames.com/wiki/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://oxeyegames.com/wiki/index.php?action=history&amp;feed=atom&amp;title=StartTrackedSound</id>
		<title>StartTrackedSound - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://oxeyegames.com/wiki/index.php?action=history&amp;feed=atom&amp;title=StartTrackedSound"/>
		<link rel="alternate" type="text/html" href="http://oxeyegames.com/wiki/index.php?title=StartTrackedSound&amp;action=history"/>
		<updated>2026-04-08T09:55:45Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://oxeyegames.com/wiki/index.php?title=StartTrackedSound&amp;diff=335&amp;oldid=prev</id>
		<title>Thewreck at 13:55, 18 January 2010</title>
		<link rel="alternate" type="text/html" href="http://oxeyegames.com/wiki/index.php?title=StartTrackedSound&amp;diff=335&amp;oldid=prev"/>
				<updated>2010-01-18T13:55:12Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:55, 18 January 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;audio.startTrackedSound(soundFilename [, gain [, modulation [, x, y, z, [speedX, speedY, speedZ]]]])&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;audio.startTrackedSound(soundFilename [, gain [, modulation [, x, y, z, [speedX, speedY, speedZ]]]])&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Plays an audio file with a position in space, but also returns an id for updating purposes. The volume and panning is then calculated based on the [[setSoundListenerPosition]].&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Plays an audio file with a position in space, but also returns an id for updating purposes. The volume and panning is then calculated based on the [[setSoundListenerPosition]]. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'''The sound will loop until it is stopped.'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|soundFilename|A string|The name of the audio file, relative to the source folder. The name is case sensitive on Mac OS X.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{MethodParam|soundFilename|A string|The name of the audio file, relative to the source folder. The name is case sensitive on Mac OS X.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Thewreck</name></author>	</entry>

	<entry>
		<id>http://oxeyegames.com/wiki/index.php?title=StartTrackedSound&amp;diff=323&amp;oldid=prev</id>
		<title>Thewreck: Created page with '{{AudioMethod | audio.startTrackedSound(soundFilename [, gain [, modulation [, x, y, z, [speedX, speedY, speedZ]]]]) | Plays an audio file with a position in space, but also retu...'</title>
		<link rel="alternate" type="text/html" href="http://oxeyegames.com/wiki/index.php?title=StartTrackedSound&amp;diff=323&amp;oldid=prev"/>
				<updated>2010-01-18T13:32:57Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#39;{{AudioMethod | audio.startTrackedSound(soundFilename [, gain [, modulation [, x, y, z, [speedX, speedY, speedZ]]]]) | Plays an audio file with a position in space, but also retu...&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{AudioMethod&lt;br /&gt;
|&lt;br /&gt;
audio.startTrackedSound(soundFilename [, gain [, modulation [, x, y, z, [speedX, speedY, speedZ]]]])&lt;br /&gt;
|&lt;br /&gt;
Plays an audio file with a position in space, but also returns an id for updating purposes. The volume and panning is then calculated based on the [[setSoundListenerPosition]].&lt;br /&gt;
|&lt;br /&gt;
{{MethodParam|soundFilename|A string|The name of the audio file, relative to the source folder. The name is case sensitive on Mac OS X.}}&lt;br /&gt;
{{MethodParam|gain|A number|The power at which the sound is emitted.}}&lt;br /&gt;
{{MethodParam|modulation|A number|How pitch shifted the sound should be. Original pitch is 1.}}&lt;br /&gt;
{{MethodParam|x|A number|Position in space, in meters.}}&lt;br /&gt;
{{MethodParam|y|A number|Position in space, in meters.}}&lt;br /&gt;
{{MethodParam|z|A number|Position in space, in meters.}}&lt;br /&gt;
{{MethodParam|speedX|A number|The speed of the sound in space, for creation of doppler effects, in meters/second.}}&lt;br /&gt;
{{MethodParam|speedY|A number|The speed of the sound in space, for creation of doppler effects, in meters/second.}}&lt;br /&gt;
{{MethodParam|speedZ|A number|The speed of the sound in space, for creation of doppler effects, in meters/second.}}&lt;br /&gt;
|&lt;br /&gt;
Returns one value, soundId, or nil in case the soundFilename doesn't exist.&lt;br /&gt;
}}&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   local mySound = audio.startTrackedSound(&amp;quot;fireball.wav&amp;quot;)&lt;br /&gt;
   local fireBall = { x = 100 , y = 0 }&lt;br /&gt;
   audio.updateTrackedSound(mySound, 1 ,1 , fireBall.x, fireBall.y, 0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thewreck</name></author>	</entry>

	</feed>