Is there a way in SilverLight 5 to play PCM data? This could be obtained from a stream from a web Server or obtained by reading a WAV file.
Any help would be greatly appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Silverlight 5 includes a class from the XNA Framework, namely
Microsoft.Xna.Framework.Audio. This contains a typeSoundEffectwhich you can use to play PCM data. (Since SL5 includes the class, I don’t think you’ll need to add any additional references)There are overloads for the
Playmethod which you can see here. One thing to note is that there are limitations in terms of the types ofwavfiles you can use: