Package jmri.jmrit.audio
Class AbstractAudioListener.AudioListenerMoveThread
- java.lang.Object
-
- java.lang.Thread
-
- jmri.jmrit.audio.AbstractAudioThread
-
- jmri.jmrit.audio.AbstractAudioListener.AudioListenerMoveThread
-
- All Implemented Interfaces:
java.lang.Runnable
,AudioThread
- Enclosing class:
- AbstractAudioListener
protected static class AbstractAudioListener.AudioListenerMoveThread extends AbstractAudioThread
An internal class used to create a new thread to monitor and maintain current listener position with respect to velocity.
-
-
Field Summary
-
Fields inherited from interface jmri.jmrit.audio.AudioThread
GET, NA, SET
-
-
Constructor Summary
Constructors Constructor Description AudioListenerMoveThread(AbstractAudioListener audioListener)
Constructor that takes handle to AudioListener to monitor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
cleanup()
Shuts this thread down and clears references to created objectsvoid
run()
Main processing loop-
Methods inherited from class jmri.jmrit.audio.AbstractAudioThread
die, dying, isThreadAlive, snooze
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
AudioListenerMoveThread
AudioListenerMoveThread(AbstractAudioListener audioListener)
Constructor that takes handle to AudioListener to monitor- Parameters:
audioListener
- AudioListener to monitor
-
-
Method Detail
-
run
public void run()
Main processing loop- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-
cleanup
protected void cleanup()
Shuts this thread down and clears references to created objects- Overrides:
cleanup
in classAbstractAudioThread
-
-