hmi.elckerlyc.audioengine
Class AudioPlayer
java.lang.Object
hmi.elckerlyc.audioengine.AudioPlayer
- All Implemented Interfaces:
- Player
public class AudioPlayer
- extends Object
- implements Player
|
Method Summary |
void |
addAudioUnit(AudioUnit au)
|
void |
addExceptionListener(BMLExceptionListener ws)
|
void |
cleanup()
|
void |
clearAll(double absoluteTime)
|
Set<String> |
getBehaviours(String bmlId)
|
double |
getEndTime(String behId,
String bmlId)
|
Set<String> |
getInvalidBehaviours()
|
int |
getNumberOfAudioUnits()
|
void |
interruptBehaviourBlock(String bmlId,
double time)
Interrupts all behaviors in the block; that is: calls their stop and removes them from the plan |
void |
play(double time)
|
void |
removeAllExceptionListeners()
|
void |
removeAudioUnit(String id,
String bmlId)
|
void |
reset()
Reset the player. |
void |
setBMLBlockState(String bmlId,
PlanUnitState state)
|
void |
setParameterValue(String behId,
String bmlId,
String paramId,
float value)
|
void |
setParameterValue(String behId,
String bmlId,
String paramId,
String value)
|
void |
shutdown()
Clean up resources constructed with the planner (e.g. for native stuff, spawned threads, ...). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
app
private final AudioPlanPlayer app
logger
private static org.slf4j.Logger logger
AudioPlayer
public AudioPlayer()
play
public void play(double time)
addExceptionListener
public void addExceptionListener(BMLExceptionListener ws)
- Specified by:
addExceptionListener in interface Player
removeAllExceptionListeners
public void removeAllExceptionListeners()
- Specified by:
removeAllExceptionListeners in interface Player
addAudioUnit
public void addAudioUnit(AudioUnit au)
getNumberOfAudioUnits
public int getNumberOfAudioUnits()
removeAudioUnit
public void removeAudioUnit(String id,
String bmlId)
reset
public void reset()
- Description copied from interface:
Player
- Reset the player.
- Specified by:
reset in interface Player
shutdown
public void shutdown()
- Description copied from interface:
Player
- Clean up resources constructed with the planner (e.g. for native stuff, spawned threads, ...). A planner should not be (re)used after shutting it down.
- Specified by:
shutdown in interface Player
clearAll
public void clearAll(double absoluteTime)
cleanup
public void cleanup()
getInvalidBehaviours
public Set<String> getInvalidBehaviours()
setBMLBlockState
public void setBMLBlockState(String bmlId,
PlanUnitState state)
- Specified by:
setBMLBlockState in interface Player
getEndTime
public double getEndTime(String behId,
String bmlId)
- Specified by:
getEndTime in interface Player
getBehaviours
public Set<String> getBehaviours(String bmlId)
- Specified by:
getBehaviours in interface Player
interruptBehaviourBlock
public void interruptBehaviourBlock(String bmlId,
double time)
- Description copied from interface:
Player
- Interrupts all behaviors in the block; that is: calls their stop and removes them from the plan
- Specified by:
interruptBehaviourBlock in interface Player
setParameterValue
public void setParameterValue(String behId,
String bmlId,
String paramId,
float value)
- Specified by:
setParameterValue in interface Player
setParameterValue
public void setParameterValue(String behId,
String bmlId,
String paramId,
String value)
- Specified by:
setParameterValue in interface Player