Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit How to access audio sample data in Silverlight?
4 replies. Latest Post by minel pather on November 23, 2009.
(0)
lm_telrex
Member
0 points
3 Posts
11-04-2009 1:47 PM |
I need to build an audio player control that shows a graphical representation of the audio data. Something that will allow users to identify periods of silence. To do this I need to access the audio sample data.
bryant
Star
9937 points
1,629 Posts
11-04-2009 6:31 PM |
You might try taking a look at Pete Brown's Silverlight Synthesizer project. I believe it has the audio feedback when the sounds play.
Min-Hong...
Contributor
3619 points
412 Posts
11-10-2009 3:23 AM |
Hi,
Are you saying you want to get a snapshot of the video you want to play. If this is the case , you may try this:
WriteableBitmap wb = new WriteableBitmap(mp, null); //mp is my MediaElement img.Source = wb; //img is my image control
Best Regards
11-16-2009 5:32 PM |
Thanks Bryant, After looking at a few samples (including Pete Brown's Silverlight Synthesizer) and articles the only way I could do it was by actually writing my own decoder and using the MediaStreamSource class. Unfortunately I could not avoid writing decoder code– which was what I hoped initially.
minel pa...
2 points
1 Posts
11-23-2009 8:42 PM |
I've had the same problem.
I've managed to port an old C# MP3 decoder to Silverlight 3 and have a working MP3 MediaStreamSource that outputs the raw sample data as well.
When it has been cleaned up (lots of old, unrequired code) I will post it at http://slaudiostreams.codeplex.com/
Hopefully this will be before the 30 days publishing limitation is up on CodePlex.