-   Programming (
-   -   clearing CD cache (

grayFalcon 09-20-2006 06:03 AM

clearing CD cache
Hello everybody!

I'm trying to make sure that data I read from a CD is correct. The idea is reading 2 times, hashing the read data and comparing the hashes. The problem is that I'm working on potentially very small files, so two subsequent reads may cause the CD to be physically read only 1 time, with the data that I get when reading the file the 2nd time coming from the cache.

So, I need to clear the CD cache between the two reads. I'd love to be able to do that in C++, but basically everything would be helpful (command-line tool, assembler... hell, gimme even a lisp script ;) )

Thanks a lot in advance,

theNbomr 09-21-2006 05:55 PM

You mention reading files; what makes you think the existing driver is not already doing what you are trying to do?
I've never ventured into those waters, but it sounds like a package such as cdparanoia would contain the basis of the code necessary to access CDs at such a low level.

--- rod.

All times are GMT -5. The time now is 03:36 PM.