473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Computing a hash code on for an Audio CD

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

Oct 25 '07 #1
5 1634
Philip Niznik wrote:
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?
You mean, like for CDDB queries?
http://www.codeproject.com/cs/media/freedb.asp

Chris.
Oct 25 '07 #2
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

"Philip Niznik" wrote:
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

Oct 25 '07 #3
On Oct 25, 7:45 pm, Peter Bromberg [C# MVP]
<pbromb...@yahoo.yohohhoandabottleofrum.comwrote :
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.

Oct 27 '07 #4
On Oct 25, 7:42 pm, Chris Shepherd <c...@nospam.chsh.cawrote:
Philip Niznik wrote:
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.
Oct 27 '07 #5
On Oct 27, 12:04 pm, Philip Niznik <pniz...@gmail.comwrote:
On Oct 25, 7:42 pm, Chris Shepherd <c...@nospam.chsh.cawrote:
Philip Niznik wrote:
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.
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)

Oct 27 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bruce Bon | last post by:
The class below is intended to play a Sun audio file (.au) in the background while the main thread, which is servicing a GUI, continues without impact. It doesn't work. For a sound file that...
0
by: Ken North | last post by:
During Software Development 2004, we recorded a panel discussion about software trends and the marriage of SQL, XML, web services and grid computing. The panel included: -Rick Cattell ...
2
by: Elmo Mäntynen | last post by:
I know how to make a hash(using mhash), but instead of encoded as hex I want it in base32 for use with the bitzi catalog. python-bitzi is useful but way too slow for just getting the hash of a...
15
by: Jim | last post by:
I am extremely frustrated. I am building c# application for a call center and am using a third party API to access some hardware. When develop and test my class using the windows console the...
9
by: Crirus | last post by:
I have ~200 players on a server... They share the same 512x512 tiles map... Each player have an explored area and a visible area... visible area is given by players's current units and...
34
by: Zahid Faizal | last post by:
Kindly suggest a good opensource package (in C or C++) that can compute the checksum of a file. SHA2 would be preferable, but SHA1/SHA0/MD5 would be acceptable as well. We have cards with...
6
by: Abubakar | last post by:
Hi, Working in pure vc++ 2k5 (complete unmanaged), I want to compute md5 hash of a given file. Any standard windows api available? Any links? Thanks, Ab.
0
by: kara18 | last post by:
Hi, am trying to create a hash tables of words and their signatures eg acert crater , here acert is the index while the crater is the value. so how would I computer an int key from...
0
by: Juanma1 | last post by:
My program is supposed to play a wav file of a ticking clock using the media player object so that only after the file is over (this is to build tension), some textboxes are populated with data...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.