|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
de.gulden.framework.jjack.JJackAudioEvent
public class JJackAudioEvent
Event class to propagate audio data from one audio processor to another.
Nested Class Summary | |
---|---|
protected class |
JJackAudioEvent.ChannelImpl
Inner class implementing interface JJackAudioChannel . |
protected class |
JJackAudioEvent.PortImpl
Inner class implementing interface JJackAudioPort . |
Field Summary | |
---|---|
protected java.nio.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 java.nio.FloatBuffer[] |
outputBuffer
Output buffers of this event. |
(package private) java.util.Stack |
stack
Backup stack for output buffers during processing. |
protected long |
timestamp
UNIX timestamp of event occurrence |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
JJackAudioEvent(long timestamp,
java.lang.Object client,
java.nio.FloatBuffer[] inputBuffer,
java.nio.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. |
java.util.Collection |
getChannels()
Returns all channels. |
java.nio.FloatBuffer |
getInput()
Returns the mono input buffer. |
java.nio.FloatBuffer |
getInput(int chan)
Returns the input buffer of the specified channel. |
java.nio.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. |
java.nio.FloatBuffer |
getOutput()
Returns the mono output buffer. |
java.nio.FloatBuffer |
getOutput(int chan)
Returns the output buffer of the specified channel. |
java.nio.FloatBuffer[] |
getOutputs()
Returns all output buffers. |
long |
getTimestamp()
Returns the UNIX timestamp marking the time of event occurrence. |
void |
setInput(java.nio.FloatBuffer buf)
Sets the mono input buffer. |
void |
setInput(int chan,
java.nio.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(java.nio.FloatBuffer buf)
Sets the mono output buffer. |
void |
setOutput(int chan,
java.nio.FloatBuffer buf)
Sets the output buffer of the specified channel. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long timestamp
protected java.nio.FloatBuffer[] inputBuffer
protected java.nio.FloatBuffer[] outputBuffer
protected int monoInputPort
protected int monoOutputPort
java.util.Stack stack
Constructor Detail |
---|
public JJackAudioEvent(long timestamp, java.lang.Object client, java.nio.FloatBuffer[] inputBuffer, java.nio.FloatBuffer[] outputBuffer)
timestamp
- UNIX timestamp of event occurrenceclient
- source client issuing the eventinputBuffer
- array of input buffers to deliver with this eventoutputBuffer
- array of output buffers to deliver with this eventMethod Detail |
---|
public long getTimestamp()
public java.nio.FloatBuffer getInput()
getMonoInputPort()
public void setInput(java.nio.FloatBuffer buf)
buf
- input buffersetMonoInputPort(int)
public java.nio.FloatBuffer getOutput()
getMonoOutputPort()
public void setOutput(java.nio.FloatBuffer buf)
buf
- output buffersetMonoOutputPort(int)
public java.nio.FloatBuffer getInput(int chan)
chan
- channel number
public void setInput(int chan, java.nio.FloatBuffer buf)
chan
- channel numberbuf
- input bufferpublic java.nio.FloatBuffer getOutput(int chan)
chan
- channel number
public void setOutput(int chan, java.nio.FloatBuffer buf)
chan
- channel numberbuf
- output bufferpublic int countInputPorts()
public int countOutputPorts()
public int countChannels()
countInputPorts() == countOutputPorts() == countChannels()
.
If the number of input and output ports differ, the minimum of both determines the
number of channels.
public java.nio.FloatBuffer[] getInputs()
public java.nio.FloatBuffer[] getOutputs()
public int getMonoInputPort()
public int getMonoOutputPort()
public void setMonoInputPort(int port)
public void setMonoOutputPort(int port)
public java.util.Collection getChannels()
Collection
returned is equals to countChannels()
.
Collection
of JJackAudioChannel
countChannels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |