public class LoadSound extends Unit
| Modifier and Type | Field and Description |
|---|---|
static javax.sound.sampled.AudioInputStream |
audioInputStream |
static long |
bufSize |
static byte[] |
bytes |
static java.lang.String |
fileName |
static javax.sound.sampled.AudioFormat |
format |
static boolean |
gotEntireFile |
static MultipleAudio |
ma |
static int |
numberOfChunks |
static long |
outputSizeInSamples |
static long |
songSizeInSamples |
CLONE_ALL_OUTPUT, CLONE_MULTIPLE_OUTPUT, COPY_OUTPUT, ESSENTIAL, ESSENTIAL_IF_CONNECTED, IMMEDIATE_UPDATE, INTERNAL, LATE_INITIALIZE, NO_UPDATE, ON_TASK_INSTANTATION, ON_USER_ACCESS, OPTIONAL, PROCESS_UPDATE, TRANSIENT, TRANSIENT_ACCESSIBLE, USER_ACCESSIBLE| Constructor and Description |
|---|
LoadSound() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createAudioInputStream(java.io.File file) |
void |
dispose()
Called when the unit is disposed of.
|
java.lang.String[] |
getInputTypes()
This method should return an array of the data types accepted by nodes not specified in getNodeInputTypes (e.g.
|
java.lang.String[][] |
getNodeInputTypes()
This method should return an array of the data types accepted by specific nodes, with the node index providing
the index for the array.
|
java.lang.String[][] |
getNodeOutputTypes()
This method should return an array of the data types output by specific nodes, with the node index providing the
index for the array.
|
java.lang.String[] |
getOutputTypes()
This method should return an array of the data types output by nodes not specified in getNodeOutputTypes() (e.g.
|
void |
init()
Called when the unit is created.
|
void |
parameterUpdate(java.lang.String paramname,
java.lang.Object value)
Called a parameters is updated (e.g.
|
void |
process()
The main unit algorithm.
|
void |
reset()
Called when the unit is reset.
|
debug, debug, defineParameter, extractClipInState, getClipIn, getClipIn, getControlInterface, getDefaultInputNodes, getDefaultNodeRequirement, getDefaultOutputNodes, getDisplayName, getDisplayPackage, getGUIBuilderV2Info, getHelpFileLocation, getInputAtNode, getInputNodeCount, getMaximumInputNodes, getMaximumOutputNodes, getMinimumInputNodes, getMinimumOutputNodes, getOutputNodeCount, getOutputPolicy, getPackageName, getParameter, getParameterPanelClass, getParameterPanelInstantiate, getParameterType, getParameterUpdatePolicy, getPopUpDescription, getRunnableInterface, getTask, getTaskGraphContext, getToolName, getToolPackage, getToolTable, getVersion, hideParameterPanel, isClipInName, isInputAtNode, isOutputSent, isParameter, log, log, notifyError, notifyError, output, outputAtNode, outputAtNode, parameterUpdated, putClipIn, removeClipIn, removeParameter, restoreClipInState, setDefaultInputNodes, setDefaultNodeRequirement, setDefaultOutputNodes, setDisplayName, setDisplayPackage, setGUIBuilderV2Info, setHelpFileLocation, setMaximumInputNodes, setMaximumOutputNodes, setMinimumInputNodes, setMinimumOutputNodes, setOutputPolicy, setParameter, setParameterPanelClass, setParameterPanelInstantiate, setParameterUpdatePolicy, setPopUpDescription, setRunnableInterface, setToolName, setToolPackage, setVersion, showParameterPanel, stoppingpublic static javax.sound.sampled.AudioInputStream audioInputStream
public static javax.sound.sampled.AudioFormat format
public static java.lang.String fileName
public static MultipleAudio ma
public static boolean gotEntireFile
public static long bufSize
public static long songSizeInSamples
public static long outputSizeInSamples
public static int numberOfChunks
public static byte[] bytes
public void process()
throws java.lang.Exception
Unitpublic static void createAudioInputStream(java.io.File file)
public void init()
public void reset()
public void parameterUpdate(java.lang.String paramname,
java.lang.Object value)
parameterUpdate in class Unitpublic java.lang.String[][] getNodeInputTypes()
UnitgetNodeInputTypes in class Unitpublic java.lang.String[] getInputTypes()
UnitgetInputTypes in class Unitpublic java.lang.String[][] getNodeOutputTypes()
UnitgetNodeOutputTypes in class Unitpublic java.lang.String[] getOutputTypes()
UnitgetOutputTypes in class Unit