<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WAM Games &#187; Sound</title>
	<atom:link href="http://wam-games.com/tag/sound/feed/" rel="self" type="application/rss+xml" />
	<link>http://wam-games.com</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 14:03:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Curing the Clicks &#8211; Release Curves in XACT</title>
		<link>http://wam-games.com/2010/04/release-curves-xact/</link>
		<comments>http://wam-games.com/2010/04/release-curves-xact/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 18:23:21 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Retrofit series]]></category>
		<category><![CDATA[Xbox]]></category>
		<category><![CDATA[overload]]></category>
		<category><![CDATA[Sound]]></category>
		<category><![CDATA[xact]]></category>

		<guid isPermaLink="false">http://wam-games.com/?p=433</guid>
		<description><![CDATA[A step by step guide to adding a release curve to a sound in XACT.]]></description>
			<content:encoded><![CDATA[<p>Once I&#8217;d worked out that the clicking noises I was getting in <a title="Retrofit posts" href="/category/retrofit-series/">Retrofit:Overload</a> were not clipping but were caused by stopping the sounds, I expected it to be easy to fix in <a title="XACT on MSDN" href="http://msdn.microsoft.com/en-us/library/ee415964%28VS.85%29.aspx" onclick="pageTracker._trackPageview('/outgoing/msdn.microsoft.com/en-us/library/ee415964_28VS.85_29.aspx?referer=');">XACT</a>. It was, really, but only after some puzzling over the MSDN docs and a false start or two.</p>
<p>To save others similar confusion, here&#8217;s a step by step guide to adding a release curve to a sound in XACT&#8230;<br />
<span id="more-433"></span></p>
<ul>
<li>In XACT, create a new RPC Preset. This brings up the RPC editor.</li>
<li>Set <em>Variable</em> to <em>ReleaseTime.</em></li>
<li>Set <em>Object</em> to <em>Track 1.</em></li>
<li>Set <em>Parameter</em> to <em>Volume</em>.</li>
<li>Now draw your release curve. To just prevent clicks, rather than create an audible fade out, it can be really short. I used half a second but it could probably be shorter. So at time 0 Volume is 0dB, and at 0.5 seconds Volume is -96dB.</li>
<li>Give your RPC an informative name, E.g. &#8220;ReleaseRPC&#8221;.</li>
<li>Now find the relevant sounds (not cues) in your Sound Bank and attach the RPC. (For single sounds you can do this on the sound&#8217;s right-click menu. Alternatively you can drag sounds onto your RPC entry in the project tree and this works with multiple sounds at once.)</li>
<li>Thats it for XACT. Save your project <img src='http://wam-games.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ul>
<p><a href="http://wam-games.com/wp-content/uploads/2010/04/release-curves-xact.png"><img class="alignnone size-full wp-image-440" title="release-curves-xact" src="http://wam-games.com/wp-content/uploads/2010/04/release-curves-xact.png" alt="" width="550" height="377" /></a></p>
<p>To use the release when the sound is stopped, it must be stopped  &#8220;as authored&#8221;.</p>
<ul>
<li>With XNA: <code>cue.Stop(AudioStopOptions.AsAuthored);</code></li>
<li>With DirectX: <code>cue-&gt;Stop(0);</code></li>
</ul>
<p>There&#8217;s no need to create a new XACT Variable to drive the RPC. The ReleaseTime variable is automatically available on each playing cue.</p>
<p>The <a title="MSDN" href="http://msdn.microsoft.com/en-us/library/ee416028%28VS.85%29.aspx" onclick="pageTracker._trackPageview('/outgoing/msdn.microsoft.com/en-us/library/ee416028_28VS.85_29.aspx?referer=');">MSDN  entry on XACT envelope parameters</a> has much more to say about this. It does actually make sense if you don&#8217;t let the jargon distract you.</p>
]]></content:encoded>
			<wfw:commentRss>http://wam-games.com/2010/04/release-curves-xact/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

