Package jmri.jmrit.audio
Class AbstractAudioSource.AudioSourceMoveThread
- java.lang.Object
-
- java.lang.Thread
-
- jmri.jmrit.audio.AbstractAudioThread
-
- jmri.jmrit.audio.AbstractAudioSource.AudioSourceMoveThread
-
- All Implemented Interfaces:
java.lang.Runnable
,AudioThread
- Enclosing class:
- AbstractAudioSource
protected static class AbstractAudioSource.AudioSourceMoveThread extends AbstractAudioThread
An internal class used to create a new thread to monitor and maintain current source position with respect to velocity.
-
-
Field Summary
-
Fields inherited from interface jmri.jmrit.audio.AudioThread
GET, NA, SET
-
-
Constructor Summary
Constructors Constructor Description AudioSourceMoveThread(AbstractAudioSource audioSource)
Constructor that takes handle to looping AudioSource 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 objects.void
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
-
AudioSourceMoveThread
AudioSourceMoveThread(AbstractAudioSource audioSource)
Constructor that takes handle to looping AudioSource to monitor.- Parameters:
audioSource
- looping AudioSource 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
-
-