Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Computing a hash code on for an Audio CD

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Philip Niznik - 25 Oct 2007 19:07 GMT
Hi All,
This may be a framework question rather than specific to c#, but does
anyone know the best approach to computing a hashcode for an audio CD
(so I can check if the content of one cd is equal or different to
another) ?
I guess the first thing I need to be able to do is get access to the
CD audio data so that I can get a inputstream for hashing? At the
moment I can't see any classes that understand how to access audio
CD's?
Thanks,
Phill
Chris Shepherd - 25 Oct 2007 19:42 GMT
> Hi All,
> This may be a framework question rather than specific to c#, but does
[quoted text clipped - 5 lines]
> moment I can't see any classes that understand how to access audio
> CD's?

You mean, like for CDDB queries?
http://www.codeproject.com/cs/media/freedb.asp

Chris.
Philip Niznik - 27 Oct 2007 12:04 GMT
> You mean, like for CDDB queries?http://www.codeproject.com/cs/media/freedb.asp
>
> Chris.

Thanks Chris, interesting. On first looks it appears to look at the
meta data from the cda files rather than the actual content. I need
something that looks to see if the actual content is the same. Will dl
and have a good look over this though just in case.
Philip Niznik - 27 Oct 2007 12:20 GMT
> > You mean, like for CDDB queries?http://www.codeproject.com/cs/media/freedb.asp
>
[quoted text clipped - 4 lines]
> something that looks to see if the actual content is the same. Will dl
> and have a good look over this though just in case.

some interesting use of win32 calls, but from what I can see does read
the track content only (I am sure could be adapted, but being lazy, I
don't really want to have to understand cd audio format if at all
possible)
Peter Bromberg [C# MVP] - 25 Oct 2007 19:45 GMT
First, I think you may be referring to a CRC32 computation rather than a
"hash code". CRC32 is used to verify such data.
You would have to use one of the supplied DirectXAudio or other classes
that are available in the DirectX SDK.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hi All,
> This may be a framework question rather than specific to c#, but does
[quoted text clipped - 7 lines]
> Thanks,
> Phill
Philip Niznik - 27 Oct 2007 11:57 GMT
On Oct 25, 7:45 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yohohhoandabottleofrum.com> wrote:
> First, I think you may be referring to a CRC32 computation rather than a
> "hash code". CRC32 is used to verify such data.
>  You would have to use one of the supplied DirectXAudio or other classes
> that are available in the DirectX SDK.

Thanks Peter, yes really I mean CRC32. Thanks for the pointer -
DirectX it is then.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.