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 4550310
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:28:45+00:00 2026-05-21T16:28:45+00:00

I have the need to play multiple soundeffects at once in my WP7 app.

  • 0

I have the need to play multiple soundeffects at once in my WP7 app.
I currently have it working with wav files that takes around 5 megabyte, instead of 500kb when coded in wma/mp3.

Current part of the code:

 Stream stream = TitleContainer.OpenStream(String.Format("/location/{0}.wav", value)
 SoundEffect effect = SoundEffect.FromStream(stream);
 effect.Play();

This works great in a loop, preparing all effects, and then playing them.

However, I would really like to use mp3/wma/whatever-codec to slim my xap file down.

I tried to use MediaElement, but it appears that you also can’t use that to play multiple files. Also the XNA MediaPlayer can’t be instantiated, and as far as I experienced can’t be made to play multiple files at once.

The only solution I see left is that I somehow decode the mp3 to wav and feed that Stream to SoundEffect.

Any ideas on how to accomplish the multiple playback? Or suggestions on how to decode mp3 to wav?

  • 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-21T16:28:45+00:00Added an answer on May 21, 2026 at 4:28 pm

    On the conversion… sorry – but I don’t think there’s any api currently available for WMA or MP3 decoding.

    Also, I don’t think there are any implementations of MP3, WMA or Ogg decoders which are available in pure c# code – all of them I’ve seen use DirectShow or PInvoke – e.g. see C# Audio Library.

    I personally do expect audio/video compression/decompression to be available at some point in the near future in the WP7 APIs – but I can’t guess when!

    For some simple compression you can try things like shipping mono instead of stereo files, or shipping 8 bit rather than 16 bit audio files – these are easy to convert back to 16 bit (with obvious loss of resolution) on the phone.

    Using compression like zip might also help for some sound effects… but I wouldn’t expect it to be hugely successful.

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

Sidebar

Related Questions

I need an embeddable audio player that will play wav files in IE, FF,
I have an aes encrypted mp3 file that I need to play in iOS;
I have need for a function pointer that takes two arguments and returns a
I have some code that needs adjusting. I need the .play rel to be
I have a massive function that I would like to decompose into multiple files.
i have to make an application where i need to play two video simultaniously,on
I have a video, and I need to play it in my ASP.NET page's
I have need to return multiple results from a subquery and have been unable
In my app I have need to trigger show some custom view when status
I have multiple audio files in the assets directory of my application. When the

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.