<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: More of Silverlight sound implementation for multimedia app</title>
	<atom:link href="http://robburke.net/2008/08/05/more-of-silverlight-sound-implementation-for-multimedia-app/feed/" rel="self" type="application/rss+xml" />
	<link>http://robburke.net/2008/08/05/more-of-silverlight-sound-implementation-for-multimedia-app/</link>
	<description></description>
	<lastBuildDate>Sun, 14 Mar 2010 21:23:51 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mike</title>
		<link>http://robburke.net/2008/08/05/more-of-silverlight-sound-implementation-for-multimedia-app/comment-page-1/#comment-1460</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 13 Nov 2008 21:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://robburke.net/?p=120#comment-1460</guid>
		<description>I&#039;m getting similar results to what Roger is getting.  If either of you are still monitoring this post could you tell me if you are using .wma or .mp3 files? I&#039;m using .wma and have sounds that are under 1second and they don&#039;t make a sound when playing.</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting similar results to what Roger is getting.  If either of you are still monitoring this post could you tell me if you are using .wma or .mp3 files? I&#8217;m using .wma and have sounds that are under 1second and they don&#8217;t make a sound when playing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Burke</title>
		<link>http://robburke.net/2008/08/05/more-of-silverlight-sound-implementation-for-multimedia-app/comment-page-1/#comment-1050</link>
		<dc:creator>Rob Burke</dc:creator>
		<pubDate>Sun, 14 Sep 2008 14:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://robburke.net/?p=120#comment-1050</guid>
		<description>Roger - just a few more notes in response to your questions above:

I would be able to tell if the sounds weren&#039;t playing from the beginning, and I am pretty certain that they are.  

I am having trouble creating perfect seamless loops myself (as you can tell from the artifacts in the menu music, and the code for creating them is above -- this works very well in WPF).  I experimented with this and didn&#039;t come up with a satisfactory solution.

And for the record, the idea of destroying and re-creating MediaElements for every sound definitely makes me shudder :)   WPF would have an absolute conniption fit if you did that.</description>
		<content:encoded><![CDATA[<p>Roger &#8211; just a few more notes in response to your questions above:</p>
<p>I would be able to tell if the sounds weren&#8217;t playing from the beginning, and I am pretty certain that they are.  </p>
<p>I am having trouble creating perfect seamless loops myself (as you can tell from the artifacts in the menu music, and the code for creating them is above &#8212; this works very well in WPF).  I experimented with this and didn&#8217;t come up with a satisfactory solution.</p>
<p>And for the record, the idea of destroying and re-creating MediaElements for every sound definitely makes me shudder <img src='http://robburke.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />    WPF would have an absolute conniption fit if you did that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Burke</title>
		<link>http://robburke.net/2008/08/05/more-of-silverlight-sound-implementation-for-multimedia-app/comment-page-1/#comment-1049</link>
		<dc:creator>Rob Burke</dc:creator>
		<pubDate>Sun, 14 Sep 2008 14:32:40 +0000</pubDate>
		<guid isPermaLink="false">http://robburke.net/?p=120#comment-1049</guid>
		<description>Guys, just to be clear, I am *not* re-creating the MediaElements each time I play a sound.  Not at all.  The only time I ever instantiate a MediaElement is at load time, when  I create a set of MediaElements (in the above example, 14) which I reuse throughout the application.  Note that this restricts me to a maximum of 14 sounds being played simultaneously.

Look how the MediaEnded event is being handled.  The MediaElement is being &#039;released&#039; back into the pool of available MediaElements, so that it might be used again to play a different sound.</description>
		<content:encoded><![CDATA[<p>Guys, just to be clear, I am *not* re-creating the MediaElements each time I play a sound.  Not at all.  The only time I ever instantiate a MediaElement is at load time, when  I create a set of MediaElements (in the above example, 14) which I reuse throughout the application.  Note that this restricts me to a maximum of 14 sounds being played simultaneously.</p>
<p>Look how the MediaEnded event is being handled.  The MediaElement is being &#8216;released&#8217; back into the pool of available MediaElements, so that it might be used again to play a different sound.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: B*gger</title>
		<link>http://robburke.net/2008/08/05/more-of-silverlight-sound-implementation-for-multimedia-app/comment-page-1/#comment-1046</link>
		<dc:creator>B*gger</dc:creator>
		<pubDate>Sun, 14 Sep 2008 02:35:24 +0000</pubDate>
		<guid isPermaLink="false">http://robburke.net/?p=120#comment-1046</guid>
		<description>Hey Roger,
I just want to confirm that I&#039;m having the same experience with MediaElements; of course you can recreate each MediaElement each time (it works) which gives some overhead and really leaks in memory.
Hopefully Microsoft will fix this problem very soon.
Cheers!</description>
		<content:encoded><![CDATA[<p>Hey Roger,<br />
I just want to confirm that I&#8217;m having the same experience with MediaElements; of course you can recreate each MediaElement each time (it works) which gives some overhead and really leaks in memory.<br />
Hopefully Microsoft will fix this problem very soon.<br />
Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RogerGuess</title>
		<link>http://robburke.net/2008/08/05/more-of-silverlight-sound-implementation-for-multimedia-app/comment-page-1/#comment-964</link>
		<dc:creator>RogerGuess</dc:creator>
		<pubDate>Thu, 04 Sep 2008 21:43:14 +0000</pubDate>
		<guid isPermaLink="false">http://robburke.net/?p=120#comment-964</guid>
		<description>I like this approach, but wonder if it will still give me the errors I have been encountering. My first technique was to have a collection of MediaElements, and simply set their source to a stream that was already open to a embedded resource. However, this creates a crazy memory leak (search Silverlight.net forums for MediaElement leak). On my second attempt I tried creating a finite list of MediaElements with their sources already set to my sounds. I would then just stop and play them over and over. The problem there is that after the first play of each MediaElement, you can&#039;t truly rewind (by calling stop()), so it would never again play the first fractions of a second of the sounds. With this method, I had to pad the front of my sounds with nearly half a second of silence before it sounded good. In your code above, can you tell if your sounds are really starting from the very beginning? Am wondering if this is the same issue people are having with getting perfect seamless loops. I hate the idea of destroying and recreating the MediaElements and streams constantly. I just assumed that would be more expensive, but honestly have not tried it yet.

Thanks!</description>
		<content:encoded><![CDATA[<p>I like this approach, but wonder if it will still give me the errors I have been encountering. My first technique was to have a collection of MediaElements, and simply set their source to a stream that was already open to a embedded resource. However, this creates a crazy memory leak (search Silverlight.net forums for MediaElement leak). On my second attempt I tried creating a finite list of MediaElements with their sources already set to my sounds. I would then just stop and play them over and over. The problem there is that after the first play of each MediaElement, you can&#8217;t truly rewind (by calling stop()), so it would never again play the first fractions of a second of the sounds. With this method, I had to pad the front of my sounds with nearly half a second of silence before it sounded good. In your code above, can you tell if your sounds are really starting from the very beginning? Am wondering if this is the same issue people are having with getting perfect seamless loops. I hate the idea of destroying and recreating the MediaElements and streams constantly. I just assumed that would be more expensive, but honestly have not tried it yet.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
