2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <proto/exec.h>
11 #include "camd_intern.h"
13 /*****************************************************************************
17 AROS_LH1(void, CloseMidiDevice
,
20 AROS_LHA(struct MidiDeviceData
*, mididevicedata
, A0
),
23 struct CamdBase
*, CamdBase
, 35, Camd
)
26 Remind me to fill in things here later.
45 2001-01-12 ksvalast first created
47 *****************************************************************************/
51 struct Drivers
*driver
,*temp
;
53 ObtainSemaphore(CB(CamdBase
)->CLSemaphore
);
55 driver
=FindPrevDriverForMidiDeviceData(mididevicedata
,CamdBase
);
58 driver
=CB(CamdBase
)->drivers
;
59 CB(CamdBase
)->drivers
=CB(CamdBase
)->drivers
->next
;
62 driver
->next
=driver
->next
->next
;
66 ReleaseSemaphore(CB(CamdBase
)->CLSemaphore
);
68 UnLoadSeg(driver
->seglist
);
69 FreeMem(driver
,sizeof(struct Drivers
));