public class UnitDataQueuePort extends UnitPort
Modifier and Type | Field and Description |
---|---|
static int |
LOOP_IF_LAST |
Constructor and Description |
---|
UnitDataQueuePort(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
addQueuedBlock(QueueDataEvent block)
Write directly to the port queue.
|
void |
beginFrame(double synthesisPeriod) |
void |
clear() |
void |
clear(TimeStamp timeStamp) |
protected void |
clearQueue()
Clear the queue.
|
QueueDataCommand |
createQueueDataCommand(SequentialData queueableData) |
QueueDataCommand |
createQueueDataCommand(SequentialData queueableData,
int startFrame,
int numFrames) |
void |
endFrame() |
void |
firePendingCallbacks() |
QueueDataCommand |
getEndBlock() |
long |
getFrameCount() |
double |
getNormalizedRate() |
int |
getNumChannels() |
boolean |
hasMore() |
boolean |
isTargetValid() |
void |
queue(SequentialData queueableData)
Queue entire amount of data with no options.
|
void |
queue(SequentialData queueableData,
int startFrame,
int numFrames)
Queue the data to the port through the command queue ASAP.
|
void |
queue(SequentialData queueableData,
int startFrame,
int numFrames,
TimeStamp timeStamp)
Queue the data to the port at a future time.
|
void |
queueImmediate(SequentialData queueableData,
int startFrame,
int numFrames,
TimeStamp timeStamp)
Queue the data to the port at a future time.
|
void |
queueLoop(SequentialData queueableData)
Queue the entire data object for looping.
|
void |
queueLoop(SequentialData queueableData,
int startFrame,
int numFrames)
Queue the data to the port for immediate use.
|
void |
queueLoop(SequentialData queueableData,
int startFrame,
int numFrames,
int numLoops)
Queue the data to the port for immediate use with a specified number of loops.
|
void |
queueLoop(SequentialData queueableData,
int startFrame,
int numFrames,
int numLoops,
TimeStamp timeStamp)
Queue the data to the port at a future time with a specified number of loops.
|
void |
queueLoop(SequentialData queueableData,
int startFrame,
int numFrames,
TimeStamp timeStamp)
Queue the data to the port at a future time.
|
void |
queueOff(SequentialData queueableData)
Schedule queueOff now!
|
void |
queueOff(SequentialData queueableData,
boolean ifStop)
Schedule queueOff now!
|
void |
queueOff(SequentialData queueableData,
boolean ifStop,
TimeStamp timeStamp)
Convenience method that will queue the decay portion of a SequentialData object, or the gap
and release loop portions if they exist.
|
void |
queueOn(SequentialData queueableData)
Schedule queueOn now!
|
void |
queueOn(SequentialData queueableData,
TimeStamp timeStamp)
Convenience method that will queue the attack portion of a channelData and the sustain loop
if it exists.
|
void |
queueStop(SequentialData queueableData,
int startFrame,
int numFrames,
TimeStamp timeStamp)
Queue the data to the port at a future time.
|
double |
readCurrentChannelDouble(int channelIndex) |
double |
readNextMonoDouble(double synthesisPeriod) |
void |
setCurrentBlock(QueueDataCommand currentBlock) |
void |
setNumChannels(int numChannels) |
protected void |
setupCrossFade(QueueDataCommand sourceCommand,
int sourceStartIndex,
QueueDataCommand targetCommand) |
boolean |
testAndClearAutoStop() |
void |
writeCurrentChannelDouble(int channelIndex,
double value) |
void |
writeNextDouble(double value) |
getName, getNumParts, getUnitGenerator, queueCommand, scheduleCommand, setName, setUnitGenerator
public static final int LOOP_IF_LAST
protected void setupCrossFade(QueueDataCommand sourceCommand, int sourceStartIndex, QueueDataCommand targetCommand)
public QueueDataCommand createQueueDataCommand(SequentialData queueableData)
public QueueDataCommand createQueueDataCommand(SequentialData queueableData, int startFrame, int numFrames)
public QueueDataCommand getEndBlock()
public void setCurrentBlock(QueueDataCommand currentBlock)
public void firePendingCallbacks()
public boolean hasMore()
public double getNormalizedRate()
public double readCurrentChannelDouble(int channelIndex)
public void writeCurrentChannelDouble(int channelIndex, double value)
public void beginFrame(double synthesisPeriod)
public void endFrame()
public double readNextMonoDouble(double synthesisPeriod)
protected void addQueuedBlock(QueueDataEvent block)
protected void clearQueue()
public void queue(SequentialData queueableData, int startFrame, int numFrames, TimeStamp timeStamp)
public void queueImmediate(SequentialData queueableData, int startFrame, int numFrames, TimeStamp timeStamp)
public void queueLoop(SequentialData queueableData, int startFrame, int numFrames, TimeStamp timeStamp)
public void queueLoop(SequentialData queueableData, int startFrame, int numFrames, int numLoops, TimeStamp timeStamp)
public void queueLoop(SequentialData queueableData)
public void queueLoop(SequentialData queueableData, int startFrame, int numFrames)
public void queueLoop(SequentialData queueableData, int startFrame, int numFrames, int numLoops)
public void queueStop(SequentialData queueableData, int startFrame, int numFrames, TimeStamp timeStamp)
public void queue(SequentialData queueableData, int startFrame, int numFrames)
public void queue(SequentialData queueableData)
queueableData
- public void queueOn(SequentialData queueableData)
public void queueOff(SequentialData queueableData)
public void queueOff(SequentialData queueableData, boolean ifStop)
public void queueOn(SequentialData queueableData, TimeStamp timeStamp)
public void queueOff(SequentialData queueableData, boolean ifStop, TimeStamp timeStamp)
ifStop
- Will setAutostop(true) if release portion queued without a release loop. This will
stop execution of the unit.public void clear(TimeStamp timeStamp)
public void clear()
public void writeNextDouble(double value)
public long getFrameCount()
public boolean testAndClearAutoStop()
public boolean isTargetValid()
public void setNumChannels(int numChannels)
public int getNumChannels()