<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Audio/XACT</title><link>http://forums.xna.com/forums/28.aspx</link><description>Because silence isn't golden.</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: 'Best' method to play only half of a wave file</title><link>http://forums.xna.com/forums/thread/184669.aspx</link><pubDate>Sun, 31 May 2009 23:13:31 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:184669</guid><dc:creator>WolRon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/184669.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=28&amp;PostID=184669</wfw:commentRss><description>EASIEST turned out to be creating an RPC (Runtime Parameter Control) to drop the volume using AttackTime from 0dB to -96dB at the exact moment I wanted the sound to stop playing.  Technically, the sound doesn&amp;#39;t stop playing (it&amp;#39;s just mute) but this turned out by far the easiest solution.&lt;br /&gt;
&lt;br /&gt;
Thank you very much!</description></item><item><title>Re: 'Best' method to play only half of a wave file</title><link>http://forums.xna.com/forums/thread/184636.aspx</link><pubDate>Sun, 31 May 2009 21:32:05 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:184636</guid><dc:creator>MonsuneMoon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/184636.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=28&amp;PostID=184636</wfw:commentRss><description>It would probably be easy to write a timer function that plays the wav for a specific number of seconds. Also look up the AttackTime and ReleaseTime variables in XACT:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/library/bb172310(VS.85).aspx"&gt;http://msdn.microsoft.com/en-us/library/bb172310(VS.85).aspx&lt;/a&gt;</description></item><item><title>'Best' method to play only half of a wave file</title><link>http://forums.xna.com/forums/thread/184632.aspx</link><pubDate>Sun, 31 May 2009 21:18:42 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:184632</guid><dc:creator>WolRon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/184632.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=28&amp;PostID=184632</wfw:commentRss><description>To save storage space and to make my program more efficient (as well as give me more versatility), I&amp;#39;d like to play only part of a sound.   Can it be done with existing commands (XACT or SoundEffect) or do I have to write something myself from scratch?&lt;br /&gt;
&lt;br /&gt;
Let&amp;#39;s say I have a wave file that has two distinct parts.  Sometimes I&amp;#39;d like to play the whole file.  Sometimes I&amp;#39;d like to only play the first half.&lt;br /&gt;
&lt;br /&gt;
If I do have to write my own custom routines, would it be easier to:&lt;br /&gt;
1) Load a complete wave and write code that stops the sound while playing before it plays the second half&lt;br /&gt;
2) Load two separate waves and write code that plays the first one and then occasionally plays the second wav once the first has finished&lt;br /&gt;
&lt;br /&gt;
Please give me your thoughts.</description></item></channel></rss>