The relationship between hardware and software is like this .....

Source: Internet
Author: User

Today, I spent a little time writing a small tool for converting mp3 to WMA, which was implemented through the Windows Media Encoder SDK. You may have used Windows Media Encoder, a free tool provided by Microsoft, to convert various audio and video files. However, after my test, a 6 m MP3 file, using Windows Media Encoder to convert to the WMA format (CD quality, 64 Kbps) takes about 30 seconds, and using my tool takes up to 15 seconds, in addition, Windows Media Encoder will cause the machine to hang for a while processing multiple source files in batches. My tool will not. After all, it is easy to use self-writing, and it also saves a lot of time (although relatively simple :)). As a matter of fact, I was mistaken and did not expect such a good performance.

There are several key points in the birth of this tool:

1. Why do I need to write this tool on my own?

Because I found that when using Windows Media Encoder to convert mp3 to WMA, the file information will not be automatically retained, such as title, artist, and album title. You need to manually append the file each time. In addition, you need to configure the distribute mode and bit rate for each file during multi-file batch processing, and it is not convenient to modify the output file name. So in order to save time, I decided to write a tool to help me complete it.

2. So why should I use Windows Media Encoder to convert mp3 to WMA?

Because my machine has a lot of MP3 files, I need to compress them. Since Microsoft has such a free tool, of course I prefer it.

3. So why do I need to convert mp3 to WMA?

Because I want to convert files from mp3 to WMA to save space.

4. So why do I need to save space?

Because my MP3 player is only 128 M, if it is in MP3 format (3 M to 5 m size), I can only store about 30 songs, and if it is WMA, generally, it is 1 MB to 2 MB, so you can store about 60 songs.

5. So why is my MP3 player only MB?

Because I bought it early, so the capacity is small, and now I have no money to upgrade it.

To sum up, I have no money to upgrade my hardware, so I can only use software to make up for the hardware deficiency.

So I understood why the teacher taught us to streamline the process when I first started learning programming at school.CodeYou must pay attention to performance and never use arrays with pointers. If you can release resources, release the resources as soon as possible. Do not wait until the system recycles the resources. It's like a long time ago someone talked aboutAlgorithmEveryone is comparing each other to see which algorithm uses the least variables, the least number of pointers, and the least number of lines of code. When an Indian replies, a large array can be done directly, there is no need to worry about resource consumption. hardware development is sufficient to meet our needs!

Oh, finally, I understand that Indians are richer than us. It is estimated that when we became popular in 486, we were already popularized in 586.

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.