MIDIThruConnectionParamsInitialize |
Fills a MIDIThruConnectionParams with default values.
extern void MIDIThruConnectionParamsInitialize( MIDIThruConnectionParams *inConnectionParams ) ;
inConnectionParams
- The struct to be initialized.
This convenience function fills the connection structure with default values: no endpoints, no transformations (mostly zeroes except for the channel map). Then, just filling in the source and adding one destination will create a simple, unmodified thru connection.
MIDIThruConnectionCreate |
Creates a thru connection.
extern OSStatus MIDIThruConnectionCreate( CFStringRef inPersistentOwnerID, CFDataRef inConnectionParams, MIDIThruConnectionRef *outConnection ) ;
inPersistentOwnerID
- If null, then the connection is marked as owned by the client and will be automatically disposed with the client. if it is non-null, then it should be a unique identifier, e.g. "com.mycompany.MyCoolProgram".
inConnectionParams
- A MIDIThruConnectionParams contained in a CFDataRef.
outConnection
- On successful return, a reference to the newly-create connection.
MIDIThruConnectionDispose |
Disposes a thru connection.
extern OSStatus MIDIThruConnectionDispose( MIDIThruConnectionRef connection ) ;
connection
- The connection to be disposed
MIDIThruConnectionGetParams |
Obtains a thru connection's MIDIThruConnectionParams.
extern OSStatus MIDIThruConnectionGetParams( MIDIThruConnectionRef connection, CFDataRef *outConnectionParams ) ;
connection
- The connection to be disposed.
outConnectionParams
- On successful return, the connection's MIDIThruConnectionParams in a CFDataRef
The returned CFDataRef contains a MIDIThruConnectionParams structure. The caller is responsible for releasing it.
MIDIThruConnectionSetParams |
Alters a thru connection's MIDIThruConnectionParams.
extern OSStatus MIDIThruConnectionSetParams( MIDIThruConnectionRef connection, CFDataRef inConnectionParams ) ;
connection
- The connection to be modified.
inConnectionParams
- The connection's new MIDIThruConnectionParams in a CFDataRef
MIDIThruConnectionFind |
Returns all of the persistent thru connections created by a client.
extern OSStatus MIDIThruConnectionFind( CFStringRef inPersistentOwnerID, CFDataRef *outConnectionList ) ;
inPersistentOwnerID
- The ID of the owner whose connections are to be returned.
outConnectionList
- On successful return, a CFDataRef containing an array of MIDIThruConnectionRef's.
(Last Updated February 25, 2005)