xmidi.com
 

MIDISourceCreate

Abstract: Create a virtual source in a client.

extern OSStatus MIDISourceCreate( MIDIClientRef client, 
 CFStringRef name, 
 MIDIEndpointRef * outSrc );

Clients may use this to create virtual sources.

Drivers need not call this; when they create devices and entities, sources and destinations are created at that time.

After creating a virtual source, use MIDIReceived to transmit MIDI messages from your virtual source to any clients connected to the virtual source.

Parameters

NameDescription
clientThe client owning the virtual source.
nameThe name of the virtual source.
outSrcOn successful return, a pointer to the newly-created source.
Result: An OSStatus result code.
{  Search xmidi.com:     }


[ home | docs | apps | links ]