MidiTime2Smpte


Convert a time in millisecond to an SMPTE location.

pascal void MidiTime2Smpte (long time, short format, SmpteLocPtr loc);

time
a 32-bits time in milliseconds to convert in an SMPTE location.
format
a 16-bits integer, the SMPTE format to be used : (0 : 24 f/s, 1 : 25 f/s, 2 : 30DF f/s, 3 : 30 f/s).
loc
a pointer to a TSmpteLocation record to be filled with the resulting SMPTE location.


Gives the SMPTE start location of the tape.


TSyncInfo     myInfo;
TSmpteLocation    myLoc;

MidiGetSyncInfo(&myInfo);
MidiTime2Smpte( MidiInt2ExtTime(myInfo.syncStart), myInfo.syncFormat, &myLoc);