xmidi.com
 

MIDIInputPortCreate

Abstract: Create an input port through which the client may receive incoming MIDI messages from any MIDI source.

extern OSStatus MIDIInputPortCreate( MIDIClientRef client, 
 CFStringRef portName, 
 MIDIReadProc readProc, 
 void * refCon, 
 MIDIPortRef * outPort );

After creating a port, use MIDIPortConnectSource to establish an input connection from any number of sources to your port.

Parameters

NameDescription
clientThe client to own the newly-created port.
portNameThe name of the port.
readProcThe MIDIReadProc which will be called with incoming MIDI, from sources connected to this port.
refConThe refCon passed to readHook.
outPortOn successful return, points to the newly-created MIDIPort.
Result: An OSStatus result code.
{  Search xmidi.com:     }


[ home | docs | apps | links ]