alsa.audio: limit the supported frequencies to common set
[AROS.git] / workbench / libs / realtime / nextconductor.c
blob62ea735c2bd344ce3acd48f9af3be6ac3cd8b49d
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
8 #include <proto/exec.h>
9 #include "realtime_intern.h"
11 /*****************************************************************************
13 NAME */
14 #include <libraries/realtime.h>
16 AROS_LH1(struct Conductor *, NextConductor,
18 /* SYNOPSIS */
20 AROS_LHA(struct Conductor *, previousConductor, A0),
22 /* LOCATION */
24 struct Library *, RealTimeBase, 12, RealTime)
26 /* FUNCTION
28 Return the next conductor on the conductor list. If 'previousConductor'
29 is NULL, return the first conductor in the list; if not, return the
30 conductor following 'previousConductor'. If 'previousConductor' is the
31 last conductor, this function returns NULL.
33 INPUTS
35 previousConductor -- The previous conductor or NULL to get the first
36 conductor.
38 RESULT
40 A pointer to the next conductor or NULL if there are no more conductors.
42 NOTES
44 You have to lock the conductors with LockRealTime(RT_CONDUCTORS)
45 before calling this function.
47 EXAMPLE
49 BUGS
51 SEE ALSO
53 FindConductor(), LockRealTime(), UnlockRealTime()
55 INTERNALS
57 Should private conductors be filtered out?
59 HISTORY
61 26.7.99 SDuvan implemented
63 ******************************************************************************/
66 AROS_LIBFUNC_INIT
68 if (previousConductor == NULL)
70 return (struct Conductor *)GetHead((struct List *)&GPB(RealTimeBase)->rtb_ConductorList);
73 return (struct Conductor *)GetSucc((struct Node *)previousConductor);
75 AROS_LIBFUNC_EXIT
76 } /* NextConductor */