Re: MIDIDriverEnableSource
Re: MIDIDriverEnableSource
- Subject: Re: MIDIDriverEnableSource
- From: Andy <email@hidden>
- Date: Sun, 8 Sep 2002 09:11:28 +0100
Kurt Revis said ...
MIDIEndpointGetEntity and MIDIEndpointGetRefCons both return -50 when
used inside EnableSource().
BTW, I just looked at my notes, and I also got -50 when trying to use
the erroneous endpoint that Monitor() gave me. So that's one more data
point.
I had a similar problem with the Monitor() function in my driver, in
10.1. It turned out that the MIDIServer was giving me a pointer to a
MIDIEndpointRef, not the actual MIDIEndpointRef. Perhaps the problem
you're having is the same thing. (Apple fixed my bug in 10.2.)
Like I said, grasping at straws, but this is easy enough to try out.
Herbie Robinson said ...
I looked at my driver code and it didn't do anything with that entry
point (the default the way the sample driver is shipped); so, I've
never tried it. You might want to scan the archives. There was
something about one of the callbacks to one of the optional calls
missing a level of indirection (on the caller's part). I think it was
one of the other callbacks, but where there is smoke...
Thanks guys, I hope you don't mind me posting your comments back to the
list.
I saw this topic when I delved into the archives (out of desperation!)
but it doesn't appear to be the same bug causing this problem.
While I've been debugging this I've noticed that MIDI entity refs tend
to increment by one for each new entity that's created, so it's pretty
easy to identify them...
FYI. here's some console output ...
...
midi driver C++ "this" pointer = 00057E30
MIDIDeviceRef = 09810010
source port entity = 09810011
source endpoint = 09810012
...now when we connect up another MIDI application's MIDI out to one
of our driver's MIDI in ports, EnableSource() gets called by the system
...
and we get...
EnableSource(MIDIEnpointRef src, Boolean enabled)
{
src = 0005CE30 (looks like it could be a pointer to
something)
*((MIDIEndpointRef *)src) = A0CE3D20 (but doesn't look like an
endpoint ref!)
}
I think I might file a bug soon if I can't resolve this.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.