public class LXAudioOutput extends LXAudioComponent implements LXOscComponent, LineListener
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
StringParameter |
file |
BooleanParameter |
looping |
BooleanParameter |
play |
BooleanParameter |
trigger |
BITS_PER_SAMPLE, BYTES_PER_SAMPLE, left, mix, MONO, MONO_BUFFER_SIZE, MONO_FRAME_SIZE, MONO_SOURCE_LINE, MONO_TARGET_LINE, right, SAMPLE_BUFFER_SIZE, SAMPLE_RATE, STEREO, STEREO_BUFFER_SIZE, STEREO_FRAME_SIZE, STEREO_SOURCE_LINE, STEREO_TARGET_LINE
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Constructor and Description |
---|
LXAudioOutput(LX lx) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getFileName() |
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
boolean |
setAudioInputStream(AudioInputStream inputStream) |
void |
setInputStream(File file) |
boolean |
setInputStream(InputStream inputStream) |
void |
update(LineEvent event) |
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, dispose, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, load, loadParameters, removeParameter, removeParameter, save, saveParameters, setParent, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOscAddress, handleOscMessage
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
public final BooleanParameter trigger
public final BooleanParameter play
public final BooleanParameter looping
public final StringParameter file
public LXAudioOutput(LX lx)
public void setInputStream(File file)
public boolean setInputStream(InputStream inputStream)
public boolean setAudioInputStream(AudioInputStream inputStream)
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXComponent
p
- Parameter that has a value changepublic String getFileName()
public void close()
public void update(LineEvent event)
update
in interface LineListener
LX library by Mark C. Slee. © 2012-2020