com.sun.j3d.audioengines
Class AudioEngineThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.sun.j3d.audioengines.AudioEngineThread
All Implemented Interfaces:
java.lang.Runnable

public class AudioEngineThread
extends java.lang.Thread

The Thread Class extended for Audio Device engines that must process calls dynamically, in 'real-time" to asynchronously change engine parameters.

NOTE: this class is probably not needed for those Audio Device implementations that handle all dynamic parameters in the low-level audio library.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AudioEngineThread(java.lang.ThreadGroup t, java.lang.String threadName)
          This constructor simply assigns the given id.
 
Method Summary
 void cleanup()
           
 void doWork()
          This method is defined by all slave threads to implement one iteration of work.
 void finish()
          This causes the threads run method to exit.
 void initialize()
          This initializes this thread.
 void run()
           
 void runMonitor(int action, long referenceTime, java.lang.Object[] args)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AudioEngineThread

public AudioEngineThread(java.lang.ThreadGroup t,
                         java.lang.String threadName)
This constructor simply assigns the given id.

Method Detail

doWork

public void doWork()
This method is defined by all slave threads to implement one iteration of work.


initialize

public void initialize()
This initializes this thread. Once this method returns, the thread is ready to do work.


finish

public void finish()
This causes the threads run method to exit.


run

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

runMonitor

public void runMonitor(int action,
                       long referenceTime,
                       java.lang.Object[] args)

shutdown

public void shutdown()

cleanup

public void cleanup()