public class LXAudioEngine extends LXModulatorComponent implements LXOscComponent
Modifier and Type | Class and Description |
---|---|
static class |
LXAudioEngine.Mode |
LXModulatorComponent.Profiler
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
BooleanParameter |
enabled |
LXAudioInput |
input
Audio input object
|
GraphicMeter |
meter |
EnumParameter<LXAudioEngine.Mode> |
mode |
LXAudioOutput |
output |
modulators, profiler
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Constructor and Description |
---|
LXAudioEngine(LX lx) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Invoked when a component is being removed from the system and will no longer be used at all.
|
LXAudioInput |
getInput()
Retrieves the audio input object at default sample rate of 44.1kHz
|
void |
load(LX lx,
JsonObject obj)
Loads the LX component.
|
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
addModulator, addModulator, addModulator, constructProfiler, getModulator, getModulators, loop, moveModulator, removeModulator, startModulator
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, 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 BooleanParameter enabled
public final LXAudioInput input
public final LXAudioOutput output
public final GraphicMeter meter
public final EnumParameter<LXAudioEngine.Mode> mode
public LXAudioEngine(LX lx)
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXComponent
p
- Parameter that has a value changepublic final LXAudioInput getInput()
public void dispose()
LXComponent
super.dispose()
at the appropriate
time to perform the basic cleanup, which may need to happen either before or after cleaning
up other objects.dispose
in class LXModulatorComponent
public void load(LX lx, JsonObject obj)
LXComponent
load
in interface LXSerializable
load
in class LXComponent
lx
- LX instanceobj
- Object to deserializeLX library by Mark C. Slee. © 2012-2020