|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.elckerlyc.planunit.AbstractPlanUnit
hmi.elckerlyc.audioengine.AudioUnit
public abstract class AudioUnit
| Field Summary | |
|---|---|
protected double |
bmlStartTime
|
private double |
duration
|
private TimePeg |
endPeg
|
protected String |
fileName
|
private static org.slf4j.Logger |
logger
|
private TimePeg |
startPeg
|
protected double |
systemStartTime
|
| Fields inherited from class hmi.elckerlyc.planunit.AbstractPlanUnit |
|---|
bmlBlockPeg |
| Constructor Summary | |
|---|---|
AudioUnit(BMLBlockPeg bbPeg,
String fname,
String id,
String bmlId)
|
|
| Method Summary | |
|---|---|
TimePeg |
getEndPeg()
|
double |
getEndTime()
Get the global end time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet) |
double |
getPreferedDuration()
0 is unknown/persistent |
TimePeg |
getStartPeg()
|
double |
getStartTime()
Get the global start time of the PlanUnit, TimePeg.VALUEUNKNOWN if not known (yet) |
TimePeg |
getTimePeg(String syncId)
null is not set |
boolean |
hasValidTiming()
Checks if the timing of this plan unit is 'valid' (e.g. stuff like start is earlier than end, but also planunit specific stuff like biomechanically possible timing). |
void |
sendEndProgress(double time)
Send the end progress feedback info, should be called only from the AudioPlanPlayer. |
abstract void |
sendProgress(double playTime,
double time)
Send progress feedback for all bookmarks passed at playTime. |
protected void |
sendStartProgress(double time)
|
void |
setEnd(TimePeg end)
|
void |
setEndPeg(TimePeg endSync)
|
abstract void |
setParameterValue(String paramater,
float value)
Sets a parameter value |
void |
setPrefferedDuration(double duration)
|
void |
setStart(TimePeg start)
|
void |
setStartPeg(TimePeg startSync)
|
void |
setTimePeg(String syncId,
TimePeg peg)
Assigns a TimePeg to a sync in the PlanUnit |
void |
setup()
Setup the Audiounit. |
protected void |
setupCache()
load file, determine timing/duration, etc |
void |
stop()
|
| Methods inherited from class hmi.elckerlyc.planunit.AbstractPlanUnit |
|---|
addFeedbackListener, feedback, getAvailableSyncs, getBMLBlockPeg, getBMLId, getId, getRelativeTime, getReplacementGroup, getState, getTime, isDone, isLurking, isPlaying, isSubUnit, play, playUnit, reset, resetUnit, setState, setSubUnit, start, startUnit, stop, stopUnit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hmi.elckerlyc.planunit.PlanUnit |
|---|
setParameterValue |
| Field Detail |
|---|
private static org.slf4j.Logger logger
protected String fileName
private double duration
protected double systemStartTime
protected double bmlStartTime
private TimePeg startPeg
private TimePeg endPeg
| Constructor Detail |
|---|
public AudioUnit(BMLBlockPeg bbPeg,
String fname,
String id,
String bmlId)
| Method Detail |
|---|
public TimePeg getStartPeg()
public void setStartPeg(TimePeg startSync)
startSync - the startSync to setpublic TimePeg getEndPeg()
public void setEndPeg(TimePeg endSync)
endSync - the endSync to setpublic void setStart(TimePeg start)
public void setEnd(TimePeg end)
public abstract void setParameterValue(String paramater,
float value)
PlanUnit
public void stop()
public double getStartTime()
PlanUnit
public double getEndTime()
PlanUnit
public void setTimePeg(String syncId,
TimePeg peg)
PlanUnit
public boolean hasValidTiming()
PlanUnit
public double getPreferedDuration()
PlanUnit
getPreferedDuration in interface PlanUnitgetPreferedDuration in class AbstractPlanUnit
protected void setupCache()
throws AudioUnitPlanningException
AudioUnitPlanningException
public void setup()
throws AudioUnitPlanningException
AudioUnitPlanningExceptionprotected void sendStartProgress(double time)
public abstract void sendProgress(double playTime,
double time)
playTime - time since start of the audio unittime - time since start of BML executionpublic void sendEndProgress(double time)
time - time since start of BML executionpublic void setPrefferedDuration(double duration)
public TimePeg getTimePeg(String syncId)
PlanUnit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||