simoninns / DomesdayDuplicator

High-speed LaserDisc RF sampler
GNU General Public License v3.0
138 stars 21 forks source link

Include a counter in the unused bits of the sample data #115

Closed atsampson closed 1 year ago

atsampson commented 2 years ago

At present, 10-bit samples are transferred across the USB link as 16-bit words, so there are 6 unused bits per sample.

How about including a counter in the unused bits that increments every N samples, where N is fairly large? That way the DomesdayDuplicator program could detect lost samples in regular capture mode, as well as in test mode.

atsampson commented 2 years ago

I've put a prototype implementation of this on my seqcounter branch. It seems to work - checking the counter takes about 5% extra CPU time on a slow machine...