de.gulden.framework.jjack
Class JJackAudioEvent.PortImpl

java.lang.Object
  extended by de.gulden.framework.jjack.JJackAudioEvent.PortImpl
All Implemented Interfaces:
JJackAudioPort, JJackConstants
Enclosing class:
JJackAudioEvent

protected class JJackAudioEvent.PortImpl
extends java.lang.Object
implements JJackAudioPort, JJackConstants

Inner class implementing interface JJackAudioPort.

Version:
0.3
Author:
Jens Gulden

Field Summary
protected  java.nio.FloatBuffer buf
          Buffer associated with this port.
protected  int port
          Port mode, either constant INPUT or OUTPUT.
 
Fields inherited from interface de.gulden.framework.jjack.JJackConstants
INPUT, LEFT, OUTPUT, RIGHT
 
Constructor Summary
JJackAudioEvent.PortImpl(int port, java.nio.FloatBuffer buf)
          Constructor.
 
Method Summary
 java.nio.FloatBuffer getBuffer()
          Returns the FloatBuffer that holds the audio data associated with this port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

port

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


buf

protected java.nio.FloatBuffer buf
Buffer associated with this port.

Constructor Detail

JJackAudioEvent.PortImpl

JJackAudioEvent.PortImpl(int port,
                         java.nio.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 java.nio.FloatBuffer getBuffer()
Returns the FloatBuffer that holds the audio data associated with this port.

Specified by:
getBuffer in interface JJackAudioPort
Returns:
FloatBuffer, either read-only (if this is an input port), or write-only (if this is an output port)