Package heronarts.lx.audio
Class LXAudioOutput
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.audio.LXAudioComponent
heronarts.lx.audio.LXAudioOutput
- All Implemented Interfaces:
LXPath
,LXSerializable
,LXOscComponent
,LXParameterListener
,EventListener
,LineListener
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Hidden, LXComponent.Placeholder, LXComponent.Renamable
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
Modifier and TypeFieldDescriptionfinal StringParameter
final BooleanParameter
final BooleanParameter
final BooleanParameter
Fields inherited from class heronarts.lx.audio.LXAudioComponent
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
Fields inherited from class heronarts.lx.LXComponent
children, internalParameters, KEY_CHILDREN, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_INTERNAL, KEY_PARAMETER_PATH, KEY_PARAMETERS, KEY_PATH, KEY_RESET, label, legacyInternalParameters, legacyParameters, lx, modulationColor, modulationControlsExpanded, modulationsExpanded, parameters, presetFile
Fields inherited from interface heronarts.lx.LXPath
ROOT, ROOT_PREFIX, ROOT_SLASH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
Subclasses are free to override this if desired.boolean
setAudioInputStream
(AudioInputStream inputStream) void
setInputStream
(File file) boolean
setInputStream
(InputStream inputStream) void
Methods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, contains, copyParameters, dispose, getCategory, getChild, getComponentName, getComponentName, getComponentName, getDescription, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, hasParameter, isValidOscParameter, load, loadParameters, loadPreset, removeParameter, removeParameter, removeParameter, removeParameter, save, savePreset, setDescription, setParent, toOscQuery, toOscQuery, toOscQuery, toString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface heronarts.lx.osc.LXOscComponent
getOscAddress, handleOscMessage
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
trigger
-
play
-
looping
-
file
-
-
Constructor Details
-
LXAudioOutput
-
-
Method Details
-
setInputStream
-
setInputStream
-
setAudioInputStream
-
onParameterChanged
Description copied from class:LXComponent
Subclasses are free to override this if desired. It will automatically fire for any listenable parameter that is registered with this component.- Specified by:
onParameterChanged
in interfaceLXParameterListener
- Overrides:
onParameterChanged
in classLXComponent
- Parameters:
p
- Parameter that has a value change
-
getFileName
-
close
public void close() -
update
- Specified by:
update
in interfaceLineListener
-