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.