Package jmri.jmrit.audio
Class AbstractAudioSource.AudioSourceFadeThread
- java.lang.Object
-
- java.lang.Thread
-
- jmri.jmrit.audio.AbstractAudioThread
-
- jmri.jmrit.audio.AbstractAudioSource.AudioSourceFadeThread
-
- All Implemented Interfaces:
java.lang.Runnable
,AudioThread
- Enclosing class:
- AbstractAudioSource
protected static class AbstractAudioSource.AudioSourceFadeThread extends AbstractAudioThread
An internal class used to create a new thread to monitor and maintain fade in and fade out levels.Will exist only as long as this source is in the process of fading in or out.
-
-
Field Summary
-
Fields inherited from interface jmri.jmrit.audio.AudioThread
GET, NA, SET
-
-
Constructor Summary
Constructors Constructor Description AudioSourceFadeThread(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()
Shut down this thread and clear 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
-
AudioSourceFadeThread
AudioSourceFadeThread(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()
Shut down this thread and clear references to created objects.- Overrides:
cleanup
in classAbstractAudioThread
-
-