SyncInfoPtr


Record describing the SMPTE synchronisation state of MidiShare (see MidiGetSyncInfo).

typedef struct TSyncInfo *SyncInfoPtr;
typedef struct TSyncInfo
{
    long        time;           // the current MidiShare date (in milliseconds)
    long        reenter;        // the current reentrancy count of the interrupt handler
    unsigned short syncMode;    // the current synchronisation mode as defined by MidiSetSyncMode
    Byte        syncLocked;     // the current synchronisation state (0 : unlocked, 1 : locked)
    Byte        syncPort;       // the current synchronisation port
    long        syncStart;      // the date MidiShare started beeing locked to external sync (in ms)
    long        syncStop;       // the date MidiShare stopped being locked to external sync (in ms)
    long        syncOffset;     // the current offset (MidiGetExtTime() - MidiGetTime(), in ms)
    long        syncSpeed;      // the current value for the timer (implementation dependent)
    long        syncBreaks;     // the current count of breaks (transition from state locked to unlocked)
    short       syncFormat;     // the current synchronisation format (0 : 24 f/s, 1 : 25 f/s, 2 : 30DF f/s, 3 : 30 f/s)
} TSyncInfo;