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
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Author, LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.Placeholder, LXComponent.PluginRequired, LXComponent.Renamable, LXComponent.TagsNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringParameterfinal BooleanParameterfinal BooleanParameterfinal TriggerParameterFields inherited from class heronarts.lx.audio.LXAudioComponent
AUDIO_FORMAT_MONO_44K, AUDIO_FORMAT_MONO_48K, AUDIO_FORMAT_STEREO_44K, AUDIO_FORMAT_STEREO_48K, BITS_PER_SAMPLE_16, BYTES_PER_SAMPLE_16, left, mix, MONO_BUFFER_SIZE_16, MONO_FRAME_SIZE_16, MONO_SOURCE_LINE_44K, MONO_SOURCE_LINE_48K, MONO_TARGET_LINE_44K, MONO_TARGET_LINE_48K, right, SAMPLE_BUFFER_SIZE, SAMPLE_RATE_44K, SAMPLE_RATE_48K, STEREO_BUFFER_SIZE_16, STEREO_FRAME_SIZE_16, STEREO_SOURCE_LINE_44K, STEREO_SOURCE_LINE_48K, STEREO_TARGET_LINE_44K, STEREO_TARGET_LINE_48KFields inherited from class heronarts.lx.LXComponent
childArrays, 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, presetFileFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Invoked when a component is being removed from the system and will no longer be used at all.voidSubclasses are free to override this if desired.booleansetAudioInputStream(AudioInputStream inputStream) voidsetInputStream(File file) booleansetInputStream(InputStream inputStream) Methods inherited from class heronarts.lx.audio.LXAudioComponent
bufferSize, getSourceLineInfo, getTargetLineInfo, isMonoMethods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addInternalParameters, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, assertDisposed, contains, copyParameters, getCategory, getChild, getComponentDescription, getComponentName, getComponentName, getComponentName, getDescription, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, hasParameter, isSnapshotControl, isValidOscParameter, load, loadParameters, loadPreset, removeParameter, removeParameter, removeParameter, removeParameter, save, savePreset, setDescription, setParent, toOscQuery, toOscQuery, toOscQuery, toString, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface heronarts.lx.osc.LXOscComponent
getOscAddress, handleOscMessageMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
trigger
-
play
-
looping
-
file
-
-
Constructor Details
-
LXAudioOutput
-
-
Method Details
-
setInputStream
-
setInputStream
-
setAudioInputStream
-
onParameterChanged
Description copied from class:LXComponentSubclasses are free to override this if desired. It will automatically fire for any listenable parameter that is registered with this component.- Specified by:
onParameterChangedin interfaceLXParameterListener- Overrides:
onParameterChangedin classLXComponent- Parameters:
p- Parameter that has a value change
-
getFileName
-
dispose
public void dispose()Description copied from class:LXComponentInvoked when a component is being removed from the system and will no longer be used at all. This unregisters the component and should free up any resources and parameter listeners. Ideally after this method is called the object should be eligible for garbage collection. Subclasses are generally expected to override this method to handle their particular cleanup work. They should also generally callsuper.dispose()at the appropriate time to perform the basic cleanup, which may need to happen either before or after cleaning up other objects.- Overrides:
disposein classLXComponent
-