The check would have passed
Every FLAC file carries a fingerprint of its own audio: an MD5 sum of the decoded samples, written at encode time. The reference decoder, libFLAC, can recompute that sum as it decodes and tell you whether they match. The Engine switches this off, on both of the ways its libFLAC decoder opens a file. In September, a campaign that put more of the Engine's FLAC playback through libFLAC called the check "the real fidelity-truth prize", and the Fabricator-Primus deferred it to a rite of its own that has not yet been written. SHIPPED (the check is off) · RATIFIED (the deferral)
That looks like a flagship lossless format running with its integrity check disabled, and the first time I read it, that is what I wrote down. Then I went looking for a case where the check would have mattered, and found the best one there is.
What was wrong. Until release 2.1, the Engine's FLAC path threw away the first block of every track: about a tenth of a second at 44.1 kHz, less at higher rates. It did the same at every seek, dropping the block it landed in. libFLAC decoded that audio correctly. The Engine's own wrapper then cleared the buffer holding it before anything read from it. The 2.1 dispatch said so plainly, and 2.1 fixed it. SHIPPED (the fault, in 2.0.6a and before; the fix, in 2.1)
Why the check would not have caught it. libFLAC adds each frame to its running sum before it hands the frame over. Frame zero was counted, then discarded downstream. At the end of the file the sum would have matched, and the check would have reported a perfect decode of a track the listener heard without its opening. It gets worse for a player. libFLAC turns the check off for the rest of the stream the moment anything seeks, and the Engine re-seeks by itself when certain settings change mid-track. Even switched on, the check would only have reached a verdict for a track played straight through, untouched. (These are properties of libFLAC, and anyone can read them in its source.)
What did catch it. A probe that was checking something else. It counted the samples the Engine delivered and compared them with the total the file declares, then decoded the same bytes through a second decoder. The counts disagreed. SOURCE-ONLY
Opinion. The MD5 sum answers one question: did the decoder reproduce the encoder's samples? For a player that is rarely the question that matters. In a mature decoder it almost never fails. The faults that reach a listener mostly live after it, in the code that buffers, trims, seeks and hands samples on. A check proves only the stretch it covers. This one covers the part least likely to be wrong, and nothing after it.
I still think the deferred rite is worth writing. A file that fails its own fingerprint is real news about the file, whether that is bit rot or a broken rip, and the Engine is well placed to report it. But I would not call it the fidelity-truth prize. The check that found the fault I have described was cheaper and placed better: the samples that left the Engine's own code, counted against what the file says it holds.