During the use of the switchboard database, it was noticed that
occasional samples were corrupted, apparently by having all their
bits flipped. Because of the details of how mulaw coding is done,
this sometimes made small positive values into large negative ones.
It may happen in other situations, but this is the one we can detect.
A program was written to detect and repair these corrupted samples. The program depends on there being more than 10 or so samples between hits.
The program works as follows:
The program consists of two files: spiker.c and mulaw.h.