Re: Using MIDIThruConnection.h
Re: Using MIDIThruConnection.h
- Subject: Re: Using MIDIThruConnection.h
- From: Doug Wyatt <email@hidden>
- Date: Wed, 1 Oct 2003 16:07:40 -0400
Sorry, I've just discovered that the MIDIThruConnection API's are
indeed broken on Jaguar ... I found and fixed the problem for Panther
relatively recently while fixing something else, which is why it didn't
immediately occur to me that there was a problem on Jaguar, and why it
does work for me on Panther.
Doug
On Sep 23, 2003, at 21:42, Geoff wrote:
I'm trying to make use of MIDIThruConnection.h. I can't find any
documentation that says more than the header file itself. The
following function is a result of my stumbling in the dark and even
though I don't get an error when it runs I don't get any thruing
happening.
I can still get MIDI from the source and send MIDI to the destination
successfully. Perhaps there's something I'm missing? Does anybody out
there know how this works?
OSStatus SetThroughConnect(MIDIEndpointRef iFromRef, MIDIEndpointRef
iToRef, MIDIThruConnectionRef* oThroughRef)
{
OSStatus vError;
MIDIThruConnectionParams* vParams;
CFDataRef vDataRef;
vParams = new MIDIThruConnectionParams;
MIDIThruConnectionParamsInitialize(vParams);
vParams->numSources = one;
vParams->sources[zero].endpointRef = iFromRef;
vParams->numDestinations = one;
vParams->destinations[zero].endpointRef = iToRef;
vDataRef = CFDataCreate(NULL, (byte*)vParams,
sizeof(MIDIThruConnectionParams));
vError = MIDIThruConnectionCreate(NULL, vDataRef, oThroughRef);
CFRelease(vDataRef);
delete vParams;
return vError;
}
Cheers Geoff %^>
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.