2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
11 #include "camd_intern.h"
14 /*****************************************************************************
18 AROS_LH1(ULONG
, QuerySysEx
,
21 AROS_LHA(struct MidiNode
*, midinode
, A0
),
24 struct CamdBase
*, CamdBase
, 28, Camd
)
27 Remind me to fill in things here later.
38 Not tested. SysEx receiving does probably have some bugs.
47 2001-01-12 ksvalast first created
49 *****************************************************************************/
53 struct MyMidiNode
*mymidinode
=(struct MyMidiNode
*)midinode
;
57 if(mymidinode
->lastreadstatus
!=0xf0) return 0;
59 ObtainSemaphore(&mymidinode
->sysexsemaphore2
);
61 if(mymidinode
->sysex_nextis0
==TRUE
){
62 ReleaseSemaphore(&mymidinode
->sysexsemaphore2
);
66 sysex
=mymidinode
->sysex_read
;
73 ReleaseSemaphore(&mymidinode
->sysexsemaphore2
);