开发者

Not sure how to declare a variable (in MIDIPortConnectSource) for use with other methods in a class

开发者 https://www.devze.com 2023-03-21 16:55 出处:网络
I am trying 开发者_Go百科to use this in a class. OSStatus MIDIPortConnectSource( MIDIPortRefport,

I am trying 开发者_Go百科to use this in a class.

 OSStatus MIDIPortConnectSource(
                                   MIDIPortRef     port,
                                   MIDIEndpointRef source,
                                   void*           connRefCon)

I'm not sure what connRefCon should be declared as in the header file. Can anyone help me with this?


That is for your use. It is passed to your MIDIReadProc to identify the source. If you don't need to identify the source you can set it to NULL.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号