net.sf.jack4j
Class JackLocalMidiPort

java.lang.Object
  extended by net.sf.jack4j.JackPort
      extended by net.sf.jack4j.JackLocalPort
          extended by net.sf.jack4j.JackLocalMidiPort

public class JackLocalMidiPort
extends JackLocalPort

MIDI port registered by JackClient.

Author:
repa

Method Summary
 JackMidiPortBuffer initializeMidiBuffer(int bufferSize)
          Returns instance of JackMidiPortBuffer for this port.
 
Methods inherited from class net.sf.jack4j.JackLocalPort
connected, connectedTo, getBufferPointer, getByteBuffer, getClient, getConnections, getPortAliases, setPortAlias, setPortName, tie, unsetPortAlias, untie
 
Methods inherited from class net.sf.jack4j.JackPort
ensureMonitor, getLatency, getPortFlags, getPortFlagSet, getPortHandle, getPortName, getPortShortName, getPortType, isInput, isMonitorable, isOutput, isPhysical, isTerminal, monitoringInput, requestMonitor, setLatency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initializeMidiBuffer

public JackMidiPortBuffer initializeMidiBuffer(int bufferSize)
                                        throws JackException
Returns instance of JackMidiPortBuffer for this port.

The returned instance is only valid during current process cycle, and may not be cached (even if bufferSize stays the same).

For output buffer, you still need to call JackMidiPortBuffer.clearBuffer() before writing to the buffer.

Parameters:
bufferSize - current buffer size, as passed to JackClient.process(int) callback
Returns:
valid JackMidiPortBuffer object
Throws:
JackException - if the buffer can't be initialized


Copyright © 2008 Ondrej Par. All Rights Reserved.