Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6139629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:00:51+00:00 2026-05-23T18:00:51+00:00

Is there a way in SilverLight 5 to play PCM data? This could be

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:00:52+00:00Added an answer on May 23, 2026 at 6:00 pm

    Silverlight 5 includes a class from the XNA Framework, namely Microsoft.Xna.Framework.Audio. This contains a type SoundEffect which you can use to play PCM data. (Since SL5 includes the class, I don’t think you’ll need to add any additional references)

    var myAudioStream = Application.GetResourceStream(new Uri("PCMSound.wav", UriKind.RelativeOrAbsolute));
    SoundEffect effect = SoundEffect.FromStream(myAudioStream);
    effect.Play();
    

    There are overloads for the Play method which you can see here. One thing to note is that there are limitations in terms of the types of wav files you can use:

    Files must be PCM Encoded, 8 or 16 bit
    mono or stereo and either 22.5khz,
    44.1khz or 48khz sample rates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to apply bitmapeffects within a silverlight web project.
Is there any way I could draw screenshot design of Silverlight application using Visio?
Curious how this could be done. Is there any way to create a delegate
I have some C++ libraries. Is there a way to use them from Silverlight
When I'm making web service calls from Silverlight using a service reference, is there
Is there any way i can load a silverlight application from isolated storage and
Is there a way to order this silverlight bound ListBox. I am not sure
Question: Is there a good way in Silverlight to intercept undesirable characters from being
Is there a way, to change initParam parameter, on my silverlight object, from my
Is there any way to prevent Silverlight/RIA Services from converting a datetime object on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.