de.gulden.framework.jjack

Interface JJackAudioChannel

public interface JJackAudioChannel

Model of an audio channel. Every audio channel has an input port and an output port.

Version: 0.3

Author: Jens Gulden

See Also: JJackAudioPort JJackAudioEvent

Method Summary
intgetIndex()
Returns the index number of this channel.
JJackAudioPortgetPort(int port)
Returns the input or output port of this channel.
FloatBuffergetPortBuffer(int port)
Returns the input or output buffer of this channel.

Method Detail

getIndex

public int getIndex()
Returns the index number of this channel. In stereo configurations (default), the returned value is either constant LEFT(=0) or RIGHT(=1).

Returns: the index number of the channel

getPort

public JJackAudioPort getPort(int port)
Returns the input or output port of this channel.

Parameters: port either constant INPUT or OUTPUT

Returns: the input or output port, as requested

getPortBuffer

public FloatBuffer getPortBuffer(int port)
Returns the input or output buffer of this channel. This is a convenience method for getPort(port).getBuffer().

Parameters: port either constant INPUT or OUTPUT

Returns: the audio data buffer