home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / dev / e / amigae / modulessrc / libraries / realtime.e < prev    next >
Text File  |  1995-07-05  |  2KB  |  115 lines

  1. OPT MODULE
  2. OPT EXPORT
  3.  
  4. MODULE 'exec/libraries',
  5.        'exec/lists',
  6.        'exec/nodes',
  7.        'exec/tasks',
  8.        'utility/hooks'
  9.  
  10. CONST TICK_FREQ=$4B0
  11.  
  12. OBJECT conductor
  13.   ln:ln
  14.   reserved0:INT
  15.   players:mlh
  16.   clocktime:LONG
  17.   starttime:LONG
  18.   externaltime:LONG
  19.   maxexternaltime:LONG
  20.   metronome:LONG
  21.   reserved1:INT
  22.   flags:INT  -> This is unsigned
  23.   state:CHAR
  24. ENDOBJECT
  25.  
  26. CONST CONDUCTF_EXTERNAL=1,
  27.       CONDUCTF_GOTTICK=2,
  28.       CONDUCTF_METROSET=4,
  29.       CONDUCTF_PRIVATE=8,
  30.       CONDUCTB_EXTERNAL=0,
  31.       CONDUCTB_GOTTICK=1,
  32.       CONDUCTB_METROSET=2,
  33.       CONDUCTB_PRIVATE=3,
  34.       CONDSTATE_STOPPED=0,
  35.       CONDSTATE_PAUSED=1,
  36.       CONDSTATE_LOCATE=2,
  37.       CONDSTATE_RUNNING=3,
  38.       CONDSTATE_METRIC=-1,
  39.       CONDSTATE_SHUTTLE=-2,
  40.       CONDSTATE_LOCATE_SET=-3
  41.  
  42. OBJECT player
  43.   ln:ln
  44.   reserved0:CHAR
  45.   reserved1:CHAR
  46.   hook:PTR TO hook
  47.   source:PTR TO conductor
  48.   task:PTR TO tc
  49.   metrictime:LONG
  50.   alarmtime:LONG
  51.   userdata:LONG
  52.   playerid:INT  -> This is unsigned
  53.   flags:INT  -> This is unsigned
  54. ENDOBJECT
  55.  
  56. CONST PLAYERF_READY=1,
  57.       PLAYERF_ALARMSET=2,
  58.       PLAYERF_QUIET=4,
  59.       PLAYERF_CONDUCTED=8,
  60.       PLAYERF_EXTSYNC=16,
  61.       PLAYERB_READY=0,
  62.       PLAYERB_ALARMSET=1,
  63.       PLAYERB_QUIET=2,
  64.       PLAYERB_CONDUCTED=3,
  65.       PLAYERB_EXTSYNC=4,
  66.       PLAYER_BASE=$80000040,
  67.       PLAYER_HOOK=$80000041,
  68.       PLAYER_NAME=$80000042,
  69.       PLAYER_PRIORITY=$80000043,
  70.       PLAYER_CONDUCTOR=$80000044,
  71.       PLAYER_READY=$80000045,
  72.       PLAYER_ALARMTIME=$8000004c,
  73.       PLAYER_ALARM=$8000004d,
  74.       PLAYER_ALARMSIGTASK=$80000046,
  75.       PLAYER_ALARMSIGBIT=$80000048,
  76.       PLAYER_CONDUCTED=$80000047,
  77.       PLAYER_QUIET=$80000049,
  78.       PLAYER_USERDATA=$8000004A,
  79.       PLAYER_ID=$8000004B,
  80.       PLAYER_EXTSYNC=$8000004E,
  81.       PLAYER_ERRORCODE=$8000004F,
  82.       PM_TICK=0,
  83.       PM_STATE=1,
  84.       PM_POSITION=2,
  85.       PM_SHUTTLE=3
  86.  
  87. OBJECT pmtime
  88.   method:LONG
  89.   time:LONG
  90. ENDOBJECT
  91.  
  92. OBJECT pmstate
  93.   method:LONG
  94.   oldstate:LONG
  95. ENDOBJECT
  96.  
  97. CONST RT_CONDUCTORS=0,
  98.       RTE_NOMEMORY=$321,
  99.       RTE_NOCONDUCTOR=$322,
  100.       RTE_NOTIMER=$323,
  101.       RTE_PLAYING=$324
  102.  
  103. OBJECT realtimebase
  104.   lib:lib
  105.   reserved0[2]:ARRAY
  106.   time:LONG
  107.   timefrac:LONG
  108.   reserved1:INT
  109.   tickerr:INT
  110. ENDOBJECT
  111.  
  112. CONST REALTIME_TICKERR_MIN=-$2C1,
  113.       REALTIME_TICKERR_MAX=$2C1
  114.  
  115.