How to use srcConnRefCon in MIDIReadProc function.
How to use srcConnRefCon in MIDIReadProc function.
- Subject: How to use srcConnRefCon in MIDIReadProc function.
- From: tin <email@hidden>
- Date: Thu, 18 Dec 2014 22:10:34 +0800
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden