home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Orlando_1993 / Devcon93.4 / CAMD / include / midi / realtimebase.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-08  |  1.5 KB  |  50 lines

  1. #ifndef MIDI_REALTIMEBASE_H
  2. #define MIDI_REALTIMEBASE_H
  3.  
  4. /************************************************************************
  5. *     RealTime Library (timing & syncing system)                        *
  6. *************************************************************************
  7. *                                                                       *
  8. * Design & Development  - Talin & Joe Pearce                            *
  9. *                                                                       *
  10. * Copyright 1992 by Commodore Business Machines                         *
  11. *************************************************************************
  12. *
  13. * realtimebase.h - RealTime library base structure
  14. *
  15. ************************************************************************/
  16.  
  17. #ifndef EXEC_LIBRARIES_H
  18.   #include <exec/libraries.h>
  19. #endif
  20.  
  21. #ifndef EXEC_LISTS_H
  22.   #include <exec/lists.h>
  23. #endif
  24.  
  25. #ifndef EXEC_SEMAPHORES_H
  26.   #include <exec/semaphores.h>
  27. #endif
  28.  
  29.  
  30. struct RealTimeBase 
  31. {
  32.     struct Library Lib;
  33.     UWORD pad0;
  34.  
  35.     /* publicly available stuff (READ ONLY) */
  36.     ULONG Time;     /* current time */
  37.     ULONG TimeDelta;    /* time delta */
  38.     WORD TickFreq;    /* ideal RealTime Tick frequency */
  39.     WORD TickErr;    /* nanosecond error from ideal Tick length to real tick length */
  40.             /* actual tick length is:  1/TickFreq + TickErr/1e9 */
  41.             /* -705 < TickErr < 705 */
  42.  
  43.     /* private stuff below here */
  44. };
  45.  
  46. #define RealTime_TickErr_Min    -705
  47. #define RealTime_TickErr_Max    705
  48.  
  49. #endif
  50.