Converts an external time in millisecond to the value of an internal time. The convertion is made by subtracting the current offset between internal and external time.
![]()
pascal long MidiExt2IntTime(long time)
![]()
time- a 32-bits time in milliseconds.
![]()
the corresponding internal time, a 32-bits value in milliseconds.
When MidiShare is locked we have the following equivalence :
MidiExt2IntTime( MidiGetExtTime() ) == MidiGetTime();We have also :
TSyncInfo myInfo;
MidiGetSyncInfo(&myInfo);
MidiExt2IntTime(x) == x - myInfo.syncOffset;