2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
10 #include <proto/exec.h>
12 #include "camd_intern.h"
15 /*****************************************************************************
19 AROS_LH1(void, FlushMidi
,
22 AROS_LHA(struct MidiNode
*, midinode
, A0
),
25 struct CamdBase
*, CamdBase
, 13, Camd
)
28 Remind me to fill in things here later.
48 2001-01-12 ksvalast first created
50 *****************************************************************************/
54 struct MyMidiNode
*mymidinode
=(struct MyMidiNode
*)midinode
;
56 ObtainSemaphore(CB(CamdBase
)->CLSemaphore
);
57 ObtainSemaphore(&mymidinode
->receiversemaphore
);
58 mymidinode
->unpicked
=0;
59 mymidinode
->in_curr
=mymidinode
->in_start
;
60 mymidinode
->in_curr_get
=mymidinode
->in_start
;
62 ReleaseSemaphore(&mymidinode
->receiversemaphore
);
63 ReleaseSemaphore(CB(CamdBase
)->CLSemaphore
);
65 ObtainSemaphore(&mymidinode
->sysexsemaphore2
);
66 ObtainSemaphore(&mymidinode
->sysexsemaphore
);
67 mymidinode
->sysex_read
=mymidinode
->sysex_start
;
68 mymidinode
->sysex_write
=mymidinode
->sysex_write
;
69 mymidinode
->sysex_laststart
=mymidinode
->sysex_write
;
70 ReleaseSemaphore(&mymidinode
->sysexsemaphore
);
71 ReleaseSemaphore(&mymidinode
->sysexsemaphore2
);