eu.semaine.components.mary
Class QueuingAudioPlayer.Playloop

java.lang.Object
  extended by java.lang.Thread
      extended by eu.semaine.components.mary.QueuingAudioPlayer.Playloop
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
QueuingAudioPlayer

public final class QueuingAudioPlayer.Playloop
extends java.lang.Thread

Playloop is playing the Animations that are put into the player queue. TODO: The current implementation starts Animations immediately, in the queue order; priority, start time and lifetime are ignored.

Author:
marc

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected  java.util.concurrent.BlockingQueue<eu.semaine.components.mary.QueuingAudioPlayer.Animation> inputWaiting
           
protected  boolean playing
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
QueuingAudioPlayer.Playloop(java.util.concurrent.BlockingQueue<eu.semaine.components.mary.QueuingAudioPlayer.Animation> inputWaiting)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inputWaiting

protected java.util.concurrent.BlockingQueue<eu.semaine.components.mary.QueuingAudioPlayer.Animation> inputWaiting

playing

protected boolean playing
Constructor Detail

QueuingAudioPlayer.Playloop

public QueuingAudioPlayer.Playloop(java.util.concurrent.BlockingQueue<eu.semaine.components.mary.QueuingAudioPlayer.Animation> inputWaiting)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread