com.quadrique.jbuildingblocks.core.sound
Class JbbSoundHandlerPlayerThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.quadrique.jbuildingblocks.core.sound.JbbSoundHandlerPlayerThread
All Implemented Interfaces:
Runnable

public class JbbSoundHandlerPlayerThread
extends Thread

This class is used to play a sound file in a separate thread. The underlying implementation is based on the Java Sound APIs

Author:
Hervé Rivere

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void playRawData()
           
 void run()
          entry point of the thread
 void startPlaying()
          Starts the playing by starting the thread
 
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
 

Method Detail

startPlaying

public void startPlaying()
Starts the playing by starting the thread


run

public void run()
entry point of the thread

Specified by:
run in interface Runnable
Overrides:
run in class Thread

playRawData

public void playRawData()
                 throws Exception
Throws:
Exception


Copyright © 2001-2008 Quadrique Corporation. All Rights Reserved.