I have what looks like some very robust code for decoding a LTC signal but at the moment it is written in Scilab and I need it converted to C. I need the code to be-able to process from a 16-bit PCM audio buffer (acquiring the audio is not a requirement)
Wikipedia: Linear (or Longitudinal) Timecode (LTC) encodes SMPTE timecode data as a Manchester-Biphase encoded audio signal. The audio signal is commonly recorded on a VTR track or other storage media. Each frame is terminated by a 'sync word' which has a special predefined sync relationship with any video or film content.
A special bit in the linear timecode frame, the 'biphase mark correction' bit, ensures that there are an even number of AC transitions in each timecode frame.
The code will need to be tested and streamlined to insure that it will not fail on noisy or jittery signals.