<?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/33.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>problems with SoundBuffer-&gt;Stop();</title><link>http://forums.xna.com/forums/thread/158965.aspx</link><pubDate>Sat, 04 Apr 2009 17:34:21 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:158965</guid><dc:creator>andreibanc</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/158965.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=33&amp;PostID=158965</wfw:commentRss><description>&lt;span style="background-color:#f4f7f5;"&gt;i&amp;#39;ve stored sound in a soundbuffer sound from a wave file, a low E note from an electric bass &lt;span style="color:#666600;"&gt;(size: 2.01 MB, bit rate 1411 kbps, audio sample size: 16 bit, 2 channels, sample rate of 44 khz, audio format PCM).&lt;br /&gt;
&lt;/span&gt;&lt;span style="font-size:13px;"&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;IDirectSoundBuffer *buffer;&lt;br /&gt;
//code//&lt;br /&gt;
here is how I play it:&lt;br /&gt;
&lt;span style="color:#990000;"&gt;buffer-&amp;gt;SetCurrentPosition(64);&lt;br /&gt;
buffer-&amp;gt;Play(0,0,0);&lt;/span&gt;&lt;br /&gt;
//code//&lt;br /&gt;
here is how I stop it:&lt;br /&gt;
&lt;span style="color:#990000;"&gt;buffer-&amp;gt;Stop();&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
but when i stop the buffer, i hear an unpleasant and short sound, like a &lt;span style="color:#3333ff;"&gt;&amp;quot;poock&amp;quot;&lt;/span&gt; or a &lt;span style="color:#3333ff;"&gt;&amp;quot;teeck&amp;quot;...&lt;/span&gt; even if i try to play the same wave file with windows media player and then stop it imediately i hear the same sound.&lt;br /&gt;
&lt;br /&gt;
and even if i change the volume to low before i stop the buffer, things are not better.&lt;br /&gt;
&lt;span style="color:#990000;"&gt;buffer-&amp;gt;SetVolume(-5000);&lt;br /&gt;
buffer-&amp;gt;Stop();&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
bun when I play another kind of sounds, like, for example, drumkit sounds, i don&amp;#39;t have any problem.&lt;br /&gt;
please help...&lt;br /&gt;
thank you in advance!&lt;br /&gt;
andrei&lt;/p&gt;
&lt;/span&gt;&lt;/span&gt;</description></item></channel></rss>