2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
10 #include <proto/camd.h>
12 #include "camd_intern.h"
16 /*****************************************************************************
20 AROS_LH2(BOOL
, WaitMidi
,
23 AROS_LHA(struct MidiNode
*, midinode
, A0
),
24 AROS_LHA(MidiMsg
*, msg
, A1
),
27 struct CamdBase
*, CamdBase
, 25, Camd
)
30 Waits until a new message is received at the node, and
31 copy the message to msg.
34 msg - Pointer to a midimessage where the message will be copied.
37 Returns TRUE if a new message arrived or had arrived, FALSE, if there
38 was en error on the midinode.
53 2001-01-12 ksvalast first created
55 *****************************************************************************/
59 struct MyMidiNode
*mymidinode
=(struct MyMidiNode
*)midinode
;
60 if(mymidinode
->error
!=0) return FALSE
;
62 Wait(1L<<midinode
->mi_ReceiveSigBit
);
64 GetMidi(midinode
,msg
);