MIDI notifications?
MIDI notifications?
- Subject: MIDI notifications?
- From: Stephen Davis <email@hidden>
- Date: Sun, 13 Jan 2002 13:09:06 -0800
I'm trying to handle a MIDI interface showing up or going away and I
thought registering a MIDINotifyProc() during client creation would get
me such a notification. In the normal case I don't. Caveat: I'm using
a MIDIMAN MIDISport 1x1 and the driver seems pretty buggy so I just want
to know whether or not I _should_ be getting notifications when it comes
and goes. I do get a notification when another app creates a virtual
source (5 messages in fact) and subsequently destroys that virtual
source (1 notification) but not when the MIDISport comes and goes.
BTW, I get the following assert when I unplug my MIDISport:
DebugAssert: Third Party Client: asyncReadResult== noErr [-536870163]
done [line 347, file USBMIDIDriverBase.cpp]
If I look at the example code in USBMIDIDriverBase.cpp this appears to
be in the InterfaceState::ReadCallback() function. However, if an error
occurs, then nothing happens. i.e. nobody appears to be notified that
the interface went away. Presumably something else handles the detach
notification.
thanks,
stephen