简体   繁体   中英

Importing Data from Audio CD using C#?

I am doing a music album library.The program should connect to a database like FreeDB and then store it.

At the moment, it is just a concept and I want to know if it is possible to do it. The real question is, Is there a way to get the data from cd like what happens when you play a disc in Windows Media Player? I did a bit of a reasearch and I found about ID3 and mp3 but I don't think it will be any lead as the tracks are .cda.

I am studying programing (diploma). Any suggestions?

我发现了一个包含示例代码的教程,可以帮助您: http//www.codeproject.com/KB/audio-video/freedb.aspx

If you want to write all of the code from scratch you will need to learn about Red Book . Otherwise you may want to just automate something such as media player.

The following is based on my vague memories of the incomplete description that the team behind that feature in the Windows 98 era provided. The specifics of the implementation were confidential, and I wasn't privy to the details, and things may have changed quite a bit in the ensuing 13 or so years since I first experimented with this feature.

A representative sample of binary data from the CD was read in and converted into some sort of CRC-like checksum or a hash. The checksum was sent to a web service that contained a database matching those checksums to the album information.

When possible, the exact disk was matched; apparently, there were just enough conflicts in my own collection that I was sometimes presented with a list of possible albums.

Microsoft spent a fair amount of money building this database and the data included a partnership with at least one third party company. You can probably build a proof of concept fairly easily, but you probably won't be able to build out a complete database yourself. But you might be able to use something like FreeDb to build a custom service of your own.

An example of a similar approach is explained in modest detail here: http://en.wikipedia.org/wiki/CDDB

It's possible that newer CDs include some sort of distinct identifier, but I am not familiar with current CD industry standards.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM