de.gulden.framework.jjack

Class JJackAudioEvent.PortImpl

protected class JJackAudioEvent.PortImpl extends Object implements JJackAudioPort, JJackConstants

Inner class implementing interface JJackAudioPort.

Version: 0.3

Author: Jens Gulden

Field Summary
protected FloatBufferbuf
Buffer associated with this port.
protected intport
Port mode, either constant INPUT or OUTPUT.
Constructor Summary
PortImpl(int port, FloatBuffer buf)
Constructor.
Method Summary
FloatBuffergetBuffer()
Returns the FloatBuffer that holds the audio data associated with this port.

Field Detail

buf

protected FloatBuffer buf
Buffer associated with this port.

port

protected int port
Port mode, either constant INPUT or OUTPUT.

Constructor Detail

PortImpl

PortImpl(int port, FloatBuffer buf)
Constructor. Create a new instance of PortImpl with the given parameters.

Parameters: port the port mode, either constant INPUT or OUTPUT buf the buffer associated with this port

Method Detail

getBuffer

public FloatBuffer getBuffer()
Returns the FloatBuffer that holds the audio data associated with this port.

Returns: FloatBuffer, either read-only (if this is an input port), or write-only (if this is an output port)