• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to use srcConnRefCon in MIDIReadProc function.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Detect built-in input's input volume
  • Next by Date: AUGraph tone-generator having trouble with some sound fonts, but not others
  • Previous by thread: Re: Detect built-in input's input volume
  • Next by thread: Re: How to use srcConnRefCon in MIDIReadProc function.
  • Index(es):
    • Date
    • Thread