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.
41 Not tested. SysEx receiving does probably have some bugs.
44 SkipSysEx, QuierySysEx
50 2001-01-12 ksvalast first created
52 *****************************************************************************/
56 struct MyMidiNode
*mymidinode
=(struct MyMidiNode
*)midinode
;
60 if(mymidinode
->sysex_nextis0
==TRUE
) return 0;
62 ObtainSemaphore(&mymidinode
->sysexsemaphore2
);
64 mymidinode
->sysex_nextis0
=FALSE
;
67 data
=*mymidinode
->sysex_read
;
68 mymidinode
->sysex_read
++;
69 if(mymidinode
->sysex_read
==mymidinode
->sysex_end
){
70 mymidinode
->sysex_read
=mymidinode
->sysex_start
;
76 mymidinode
->sysex_nextis0
=TRUE
;
81 ReleaseSemaphore(&mymidinode
->sysexsemaphore2
);