title: MediaStreamSource for AAC in Windows Phone 7
body: <p>I'm trying to create a custom <code>MediaStreamSource</code> class for my <code>Windows Phone 7</code> project that reads AAC streams from http.<br>
  I've looked at the <a href="http://code.msdn.microsoft.com/ManagedMediaHelpers" rel="nofollow"><code>ManagedMediaHelpers</code></a> provided by Microsoft, and the code seems to work, the only problem is that I can't get any sound... I've tested it on a real device, so it's not the emulator that is the problem.<br>
  I've also looked at this <a href="http://10rem.net/blog/2010/06/22/book-excerpt-creating-raw-media-audio-and-video" rel="nofollow">site</a> to try to just get white noise sound, and my code is more or less the same as the audio part, but still no sound at all...</p>
  
  <p>Any idea on how to solve this?</p>
  
  <p>The reason I choose to try the <code>MediaStreamSource</code> is because when i just set my <code>MediaElement</code> source to the http stream with</p>
  
  <pre><code>mediaElement.Source = new URI("http://....", UriKind.Absolute);
  </code></pre>
  
  <p>it lags a bit, and I cannot figure out why. I've also tried to use the <code>XNA</code> <code>MediaPlayer</code> but it has a lot of limitations, so I cannot use it for mye purpose...</p>
  
  <p>All help is much appreciated, thanks!</p>