de.gulden.framework.jjack
public class JJackAudioEvent extends EventObject
Version: 0.3
Nested Class Summary | |
---|---|
protected class | JJackAudioEvent.ChannelImpl
Inner class implementing interface JJackAudioChannel .
|
protected class | JJackAudioEvent.PortImpl
Inner class implementing interface JJackAudioPort .
|
Field Summary | |
---|---|
protected FloatBuffer[] | inputBuffer
Input buffers of this event. |
protected int | monoInputPort
Number of input port to use for mono processors. |
protected int | monoOutputPort
Number of output port to use for mono processors. |
protected FloatBuffer[] | outputBuffer
Output buffers of this event. |
Stack | stack
Backup stack for output buffers during processing.
|
protected long | timestamp
UNIX timestamp of event occurrence |
Constructor Summary | |
---|---|
JJackAudioEvent(long timestamp, Object client, FloatBuffer[] inputBuffer, FloatBuffer[] outputBuffer)
Constructor. |
Method Summary | |
---|---|
int | countChannels()
Returns the number of channels that have both an input and an output channel.
|
int | countInputPorts()
Returns the number of channels with an input port.
|
int | countOutputPorts()
Returns the number of channels with an output port.
|
Collection | getChannels()
Returns all channels. |
FloatBuffer | getInput()
Returns the mono input buffer.
|
FloatBuffer | getInput(int chan)
Returns the input buffer of the specified channel.
|
FloatBuffer[] | getInputs()
Returns all input buffers.
|
int | getMonoInputPort()
Returns the index number of the input port used for mono access.
|
int | getMonoOutputPort()
Returns the index number of the output port used for mono access.
|
FloatBuffer | getOutput()
Returns the mono output buffer.
|
FloatBuffer | getOutput(int chan)
Returns the output buffer of the specified channel.
|
FloatBuffer[] | getOutputs()
Returns all output buffers.
|
long | getTimestamp()
Returns the UNIX timestamp marking the time of event occurrence.
|
void | setInput(FloatBuffer buf)
Sets the mono input buffer.
|
void | setInput(int chan, FloatBuffer buf)
Sets the input buffer of the specified channel.
|
void | setMonoInputPort(int port)
Sets the index number of the input port used for mono access. |
void | setMonoOutputPort(int port)
Sets the index number of the output port used for mono access. |
void | setOutput(FloatBuffer buf)
Sets the mono output buffer.
|
void | setOutput(int chan, FloatBuffer buf)
Sets the output buffer of the specified channel.
|
Parameters: timestamp UNIX timestamp of event occurrence client source client issuing the event inputBuffer array of input buffers to deliver with this event outputBuffer array of output buffers to deliver with this event
countInputPorts() == countOutputPorts() == countChannels()
.
If the number of input and output ports differ, the minimum of both determines the
number of channels.
Returns: number of channels
Returns: number of channels with an input port
Returns: number of channels with an output port
Collection
returned is equals to countChannels()
.
Returns: Collection
of JJackAudioChannel
See Also: countChannels
Returns: input buffer of the mono input port.
See Also: getMonoInputPort
Parameters: chan channel number
Returns: input buffer
Returns: array of all input buffers
Returns: input port index number
Returns: output port index number
Returns: output buffer of the mono output port.
See Also: getMonoOutputPort
Parameters: chan channel number
Returns: output buffer
Returns: array of all output buffers
Returns: the UNIX timestamp value
Parameters: buf input buffer
See Also: JJackAudioEvent
Parameters: chan channel number buf input buffer
Parameters: buf output buffer
See Also: JJackAudioEvent
Parameters: chan channel number buf output buffer