public class CoreMidiInputPort extends Object
| Modifier and Type | Field and Description |
|---|---|
private long |
memoryHandle
For each connection to an OSX EndPoint, some data is allocated on the native side.
|
private int |
midiPortReference
The OSX MIDI port reference
|
| Constructor and Description |
|---|
CoreMidiInputPort(int clientReference,
String portName)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectSource(CoreMidiSource sourceDevice)
Connects a source to this input port
|
private int |
createInputPort(int clientReference,
String portName)
Creates a CoreMIDI input port
|
void |
disconnectSource(CoreMidiSource sourceDevice)
Disconnects a source from input port
|
private long |
midiPortConnectSource(int inputPortReference,
CoreMidiSource sourceDevice)
Connects a source end point to a MIDI input
|
private void |
midiPortDisconnectSource(int inputPortReference,
long memoryReference,
CoreMidiSource sourceDevice)
Disconnects a source end point to a MIDI input
|
private final int midiPortReference
private long memoryHandle
public CoreMidiInputPort(int clientReference, String portName) throws CoreMidiException
clientReference - The client referenceportName - The name of the input portCoreMidiException - if the input port cannot be createdpublic void connectSource(CoreMidiSource sourceDevice) throws CoreMidiException
sourceDevice - The source device that wishes to connect to the portCoreMidiException - if there is a problem establishing the connectionpublic void disconnectSource(CoreMidiSource sourceDevice) throws CoreMidiException
sourceDevice - The source device that wishes to disconnect from the portCoreMidiException - if there is a problem removing the connectionprivate int createInputPort(int clientReference, String portName) throws CoreMidiException
clientReference - The MIDI client referenceportName - The name of the output portCoreMidiException - if the port cannot be createdprivate long midiPortConnectSource(int inputPortReference, CoreMidiSource sourceDevice) throws CoreMidiException
inputPortReference - The reference to an input portsourceDevice - The source device that wishes to connect to the portCoreMidiException - if there is a problem connecting the sourceprivate void midiPortDisconnectSource(int inputPortReference, long memoryReference, CoreMidiSource sourceDevice) throws CoreMidiException
inputPortReference - The reference to an input portmemoryReference - The memory handle that can now be released.sourceDevice - The source device that wishes to disconnect from the portCoreMidiException - if there is a problem disconnecting the sourceCopyright © 2017. All rights reserved.