home *** CD-ROM | disk | FTP | other *** search
- /*
- *--- CMIDITimePort.h --------------------------------------------------------
- * Copyright © Paul Ferguson, 1990, 1991, 1992. All rights reserved.
- *
- * For use with THINK C 5.0 and the THINK Class Library.
- *
- * Description:
- * This class defines a MIDI Manager time port object.
- *
- * Refer to the CMIDI Programmer's Manual for a complete desciption of
- * this class.
- *----------------------------------------------------------------------------
- */
- #pragma once
- #include "CMIDIPort.h"
-
- #define kNoClient ' ' // The UnClient
-
- class CMIDITimePort : public CMIDIPort
- {
-
- public:
-
- OSErr IMIDITimePort(
- StringPtr theName, // Pascal format, 31 char max
- OSType thePortID, // Used when signing into MM
- Boolean theVisibleFlag,
- short theFormat); // Initial time format
-
- virtual OSErr LoadPatches(ResType theResType, short theResID);
- short GetSync(void);
- void SetExternalSync(void);
- void SetInternalSync(void);
- short UpdateSync(void);
- long GetCurTime(void);
- void SetCurTime(long theTime);
- void StartTime(void);
- void StopTime(void);
- long GetOffsetTime(void);
- void SetOffsetTime(long theOffset);
- void WakeUp(long theBaseTime, long thePeriod, ProcPtr theTimeProc);
- void SetConnection(ProcPtr theConnectionProc);
- virtual void Perform(long * maxSleep); // Makes this object a CChore
- };
-
- // end of CMIDITimePort.h