QUOTE (eugen_r2 @ Apr 27 2009, 05:12)

Hello,
I wonder if there is a method for testing if a lossless file (flac or ape) was obtained by ripping an audio cd, or it was made from some lossy source.
Historically we've checked stuff like this by expanding the lossless file back into a .wav file, and comparing the initial .wav file with the new re-expanded one. There are file comparison faclilites in EAC and CDEX (freeware) and XP has a FC command line facility in it, if memory serves.
It's not unusual for rips and expands to be off by a few leading or trailing zeroes, but these days most software is better than that and the outcome of the comparison is dead nuts identical.