2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
11 /*****************************************************************************
15 #include <libraries/realtime.h>
17 AROS_LH3(BOOL
, ExternalSync
,
21 AROS_LHA(struct Player
*, player
, A0
),
22 AROS_LHA(LONG
, minTime
, D0
),
23 AROS_LHA(LONG
, maxTime
, D1
),
27 struct Library
*, RealTimeBase
, 11, RealTime
)
31 Constrain conductor time between 'minTime' and 'maxTime' (however, time
32 can never run backwards). If the specified player isn't the current
33 external synchronizing source, this function does nothing.
37 player -- The player in question
38 minTime -- Lower time bound
39 maxTime -- Upper time bound
43 A BOOL specifying if the success of this function; FALSE means that the
44 player was not the external source or that no conductor was found for
59 27.7.99 SDuvan implemented
61 ******************************************************************************/
66 if ((player
== NULL
) || (player
->pl_Source
== NULL
) ||
67 !(player
->pl_Flags
& PLAYERF_EXTSYNC
))
72 player
->pl_Source
->cdt_ExternalTime
= minTime
;
73 player
->pl_Source
->cdt_MaxExternalTime
= maxTime
;
74 player
->pl_Source
->cdt_Flags
|= CONDUCTF_GOTTICK
;