<?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=PlaySound</id>
		<title>PlaySound - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://oxeyegames.com/wiki/index.php?action=history&amp;feed=atom&amp;title=PlaySound"/>
		<link rel="alternate" type="text/html" href="http://oxeyegames.com/wiki/index.php?title=PlaySound&amp;action=history"/>
		<updated>2026-04-08T05:14:12Z</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=PlaySound&amp;diff=318&amp;oldid=prev</id>
		<title>Thewreck: Created page with '{{AudioMethod | audio.playSound(soundFilename [, volume [, pan [, modulation]]]) | Plays an audio file. | {{MethodParam|soundFilename|A string|The name of the audio file, relativ...'</title>
		<link rel="alternate" type="text/html" href="http://oxeyegames.com/wiki/index.php?title=PlaySound&amp;diff=318&amp;oldid=prev"/>
				<updated>2010-01-18T13:07:49Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#39;{{AudioMethod | audio.playSound(soundFilename [, volume [, pan [, modulation]]]) | Plays an audio file. | {{MethodParam|soundFilename|A string|The name of the audio file, relativ...&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.playSound(soundFilename [, volume [, pan [, modulation]]])&lt;br /&gt;
|&lt;br /&gt;
Plays an audio file.&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|volume|A number|Volume of the played audio file, maximum is 1.}}&lt;br /&gt;
{{MethodParam|pan|A number|Stereo panning of the sound, from -1 (left) to 0 (center) to 1 (right). Only works with mono channel sounds.}}&lt;br /&gt;
{{MethodParam|modulation|A number|How pitch shifted the sound should be. Original pitch is 1.}}&lt;br /&gt;
|&lt;br /&gt;
Returns nothing.&lt;br /&gt;
}}&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
   audio.playSound(&amp;quot;victory.ogg&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
   -- a high pitched scream from the left&lt;br /&gt;
   audio.playSound(&amp;quot;scream.wav&amp;quot;, 1, -1, 2)&lt;br /&gt;
&lt;br /&gt;
   local bomb = {x = 100, y = 100}&lt;br /&gt;
   local you = {x = 0, y = 0}&lt;br /&gt;
   local distance = math.sqrt(math.pow((bomb.x-you.x),2)+math.pow((bomb.y-you.y),2))&lt;br /&gt;
   audio.playSound(&amp;quot;boom.wav&amp;quot;, distance/100, (bomb.x-you.x)/100 , 1) &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thewreck</name></author>	</entry>

	</feed>