2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
10 #include <proto/exec.h>
12 #include "camd_intern.h"
15 /*****************************************************************************
19 AROS_LH3(ULONG
, GetSysEx
,
22 AROS_LHA(struct MidiNode
*, midinode
, A0
),
23 AROS_LHA(UBYTE
*, Buf
, A1
),
24 AROS_LHA(ULONG
, len
, D0
),
27 struct CamdBase
*, CamdBase
, 27, Camd
)
30 Remind me to fill in things here later.
43 SkipSysEx(), QuerySysEx()
49 2001-01-12 ksvalast first created
51 *****************************************************************************/
55 struct MyMidiNode
*mymidinode
=(struct MyMidiNode
*)midinode
;
59 if(mymidinode
->sysex_nextis0
==TRUE
) return 0;
61 ObtainSemaphore(&mymidinode
->sysexsemaphore2
);
63 mymidinode
->sysex_nextis0
=FALSE
;
66 data
=*mymidinode
->sysex_read
;
67 mymidinode
->sysex_read
++;
68 if(mymidinode
->sysex_read
==mymidinode
->sysex_end
){
69 mymidinode
->sysex_read
=mymidinode
->sysex_start
;
75 mymidinode
->sysex_nextis0
=TRUE
;
80 ReleaseSemaphore(&mymidinode
->sysexsemaphore2
);