Progress
If you are recording digital out from the RME into digital Lexicon, jitter is a non-issue.
This is pretty much equal to transferring a file from one HD to another.
Only and only if the bits are converted to analog, jitter is an issue.
Your best bet is probably
A file, call it WAV1
Play and record it digital, call it WAV2
If your system is bit perfect ,after a time align WAV1 and WAV2 must be bit identical.
ASIO/WASAPI (exclusive mode) are bit transparent protocols, they don’t alter the bits so what the media player is sending is exactly the same what is received by the audio device.
This obvious doesn’t rule out that either the audio device or the recorder does some DSP in hardware or if applicable its own software.
Vincent/Amir, I have made some progress in understanding some of the differences I have mentioned.
System Refresher:
Media PC (quad core, high spec), Win 7 64bit, , J River Media Player, RME 9652 Soundcard.
Oppo DVD player (with it's own SPDIF). HDMI output from the DVD player going to an Aten VC880 Audio deembedder which give a SPDIF output (for SACD's etc).
Lexicon Omega breakout box USB soundcard into a Dell dual core laptop (latency checked and confirmed to handle Audio without dropouts)
Recent Observation - DVD player sounds better than media player using the same material (CD vs lossless file off the HDD).
Method
1) I have got Audio DiffMaker working ok with baseline material as reported earlier.
2) tracked down a problem with the Lexicon Omega -working with ASIO - suspect it was internally resampling to 48kHz then dropping back to 44kHz for writing. Switched drivers, and have pretty smooth baseline when subtracting A.wav - A control.wav. This is done with multiple controls (2 - 3) so reproducible. When I say pretty smooth baseline, see later....
3) Comparing files captured from RME SPDIF ex ASIO, WASAPI, and KStreaming drivers in J River (all with the bit-perfect blue window on), I see no difference between them when using Audio DiffMaker. The subtraction is baseline flat.
4) I have sampled the Oppo dvd player SPDIF and the ATEN HDMI de-embedder into both the Lexicon Omega, and into the RME soundcard on my media PC (RME clock slaved Oppo/Aten).
5) I captured data from the DVD player's SPDIF, and also the SPDIF from the DVD player via HDMI into the ATEN VC880 into both with the Lexicon Omega to the laptop, and the RME soundcard on my PC.
6) Subtracting wav files derived from the Oppo DVD SPDIF from the SPDIF from the RME/media PC, I could not get a flat baseline, but it was not far off. When using the SPDIF signal derived from the ATEN/HDMI, there were many more problems... This lead to an unexpected finding...
7) Carefully looking at the files I find that the SPDIF derived from the HDMI/Aten is
phase inverted!!! I have a phase switch on my DAC and I have compared the sound from the Oppo SPDIF vs the Oppo HDMI/Aten SPDIF, and with phase correction they sound the same. Not sure if it's the Aten doing the phase inversion, or the HDMI path in the Oppo DVD player (I have emailed ATEN for clarification)...
8) The phase inverted sound is smoother than the normal phase, quite nice and in large part explains why I noticed the CD sounding sweeter from the DVD player (and hence prompted me to write and re-investigate).
9) Nearly smooth baseline.... I have measured the error on 200,000 samples (multiple files!) at the start of each of the files and I see:-
a) 0.61 bit error on both the L & R channel (so >1bit error in total per cycle) when using the Lexicon Omega to sample the RME soundcard. This error is present at the same level when using ASIO, WASAPI and Kernel Streaming.
b) The same 0.61 reading the SPDIF from both the Oppo and Aten into the Lexicon Omega
c) 0.23% bit error on both the L & R channel when reading the Oppo and Aten SPDIF into the RME 9652 soundcard.
Comment: Assuming there is no write error from the DVD player or the Aten, then there is 0.23 bit error on average from the RME soundcard read. I will assume that there is probably similar from the output - I don't know if this is a good assumption, but it's the best I can do which explains the audible observations that the PC does not sound as good as the DVD player.
Conclusion
1) The main differences in sound has been tracked down to an unexpected phase inversion in the path from the DVD player to the DAC
2) There is a slight difference in quality of sound from the Media PC vs the CD player, even when the phase is corrected (Positive phase does not always sound best mind), and seems likely that this is tied up in the approx 0.23 bit error per channel (i.e. total ~0.46 bit error per cycle), which is likely to be present on the SPDIF write also.
3) Within the accuracy of the equipment to hand I am not able to determine if there are any differences in the error rate from the different drivers. Nonetheless, they do have slight differences to my ear.
That's it. I can put a link in for the files if anyone is interest, but I have done with this....
Amir, you were right, the read is a very difficult thing to do.... well with cheap stuff anyway