Re: Use of the source refcon in MIDIProc callback
Re: Use of the source refcon in MIDIProc callback
- Subject: Re: Use of the source refcon in MIDIProc callback
- From: Doug Wyatt <email@hidden>
- Date: Fri, 8 Nov 2002 15:02:33 -0800
On Friday, Nov 8, 2002, at 02:53 US/Pacific, Philippe Wicker wrote:
Hi all,
The MIDIProc callback receives a (void*) pointer as 3rd parameter
which is supposed to identify the source of the packet list.
You can use it for whatever you want, but a typical usage is to
associate your own data with the source. This value is the connRefCon
that was passed to MIDIPortConnectSource.
Does that mean that packet lists send by different sources to the same
endpoint will never be merged in one packet list.
Correct, because there is not a way to signify that a packetlist
contains data from multiple sources.
In other words, can we safely rely on the source refcon to, example
given, filter midi events according to the source?
Yes.
Doug
--
Doug Wyatt
work: email@hidden (CoreAudio)
personal: email@hidden
http://www.sonosphere.com
_______________________________________________
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.