home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / MIDI Manager Class Library / CMIDITimePort.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-03  |  1.4 KB  |  46 lines  |  [TEXT/KAHL]

  1. /*
  2.  *--- CMIDITimePort.h --------------------------------------------------------
  3.  * Copyright © Paul Ferguson, 1990, 1991, 1992.  All rights reserved.
  4.  *
  5.  * For use with THINK C 5.0 and the THINK Class Library.
  6.  *
  7.  * Description:
  8.  *    This class defines a MIDI Manager time port object.
  9.  *
  10.  *    Refer to the CMIDI Programmer's Manual for a complete desciption of
  11.  *    this class.
  12.  *----------------------------------------------------------------------------
  13.  */
  14. #pragma once
  15. #include "CMIDIPort.h"
  16.  
  17. #define kNoClient    '    '                // The UnClient
  18.  
  19. class CMIDITimePort : public CMIDIPort
  20. {
  21.  
  22. public:
  23.  
  24.     OSErr            IMIDITimePort(
  25.                         StringPtr    theName,         // Pascal format, 31 char max
  26.                         OSType        thePortID,        // Used when signing into MM
  27.                         Boolean        theVisibleFlag,
  28.                         short        theFormat);        // Initial time format
  29.  
  30.     virtual    OSErr    LoadPatches(ResType theResType, short theResID);
  31.     short            GetSync(void);
  32.     void            SetExternalSync(void);
  33.     void            SetInternalSync(void);
  34.     short            UpdateSync(void);
  35.     long            GetCurTime(void);
  36.     void            SetCurTime(long theTime);
  37.     void            StartTime(void);
  38.     void            StopTime(void);
  39.     long            GetOffsetTime(void);
  40.     void            SetOffsetTime(long theOffset);
  41.     void            WakeUp(long theBaseTime, long thePeriod, ProcPtr theTimeProc);
  42.     void            SetConnection(ProcPtr theConnectionProc);
  43.     virtual    void    Perform(long * maxSleep);        // Makes this object a CChore
  44. };
  45.  
  46. // end of CMIDITimePort.h