com.brackeen.javagamebook.sound
Class SoundManager.SoundPlayer

java.lang.Object
  extended by com.brackeen.javagamebook.sound.SoundManager.SoundPlayer
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SoundManager

protected class SoundManager.SoundPlayer
extends java.lang.Object
implements java.lang.Runnable

The SoundPlayer class is a task for the PooledThreads to run. It receives the threads's Line and byte buffer from the ThreadLocal variables and plays a sound from an InputStream.

This class only works when called from a PooledThread.


Field Summary
private  java.io.InputStream source
           
 
Constructor Summary
SoundManager.SoundPlayer(java.io.InputStream source)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

private java.io.InputStream source
Constructor Detail

SoundManager.SoundPlayer

public SoundManager.SoundPlayer(java.io.InputStream source)
Method Detail

run

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