"Advanced windows Phone Programming" decodes MP3 and encoded PCM in Windows Phone 8

Source: Internet
Author: User

Blink of an eye do not do WP development, devote to PHP career has been a year, Turned to see 8.1 release, like a thriving scene, but the development of the community is no more than a year ago there is too much improvement, this is not a good phenomenon, so in git open source before the audio processing library, hoping to contribute to the community, the address is as follows: https://github.com/ Sandcu/wpaudio feel useful classmates please on the git point a star, so that more students see, below the beginning of the text.

Use of the three-way library mainly has two, one is mad one is lame,lame compile please refer to the previous article, Mad Direct compilation can, engineering rebuild process is to compile Libmad project, and then compile audio project, Because the audio project has a reference to Libmad, the final compilation of the main project can be.

The use of the demo process is:

1. First decode a built-in MP3 file to a PCM file,

2. Use the built-in Pcmstreamplayer to play the PCM file, prove the decoding success, note Pcmstreamplayer and recording, still need to refer to XNA service, So you'll see something called Xnaservice.cs in the root directory, and then remember to enable the service in App.xaml.

3. Encode the PCM file just decoded with lame to a MP3 file

4. Use MediaElement to play the MP3 file that was successfully encoded to prove that the encoding was successful.

Then say what we can do with this library:

1. Use lame to do the resampling and compression of audio files.

2. Decode the mp3 file to PCM with Libmad so that we can do some sound processing, including mixed-tone

3. More Free Audio player

At last

You are welcome to make all kinds of improvements to it, and forcefully put forward various issue on git.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.