Hi All,
I want to pass a refCon to identify each MIDI source in MIDIReadProc().
but I don’t know why the srcConnRefCon point always be “null”.
// codes
NSString *str = @“sourceName"
MIDIPortConnectSource(inPort, src,(__bridge_retained void*) str);
// use in “ void MyMIDIReadProc(const MIDIPacketList *pktlist, void
*refCon,void *srcConnRefCon) "
NSString *receiveStr = (__bridge NSString*)srcConnRefCon;
NSLog(@"%@", receiveStr);
Where is wrong ? any help is appreciate.
Thanks
Tin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com
This email sent to [email protected]