hades.utils
Class AudioFileLoader

java.lang.Object
  extended byjava.lang.Thread
      extended byhades.utils.AudioFileLoader
All Implemented Interfaces:
java.lang.Runnable

class AudioFileLoader
extends java.lang.Thread

Utility class to load audio file (.wav, .au, .rmf, .mid) asynchronously via the JDK1.2+ API based upon java.applet.Applet.newAudioClip(). Note that each AudioFileLoader runs in its own Thread.


Field Summary
(package private)  java.applet.AudioClip audioClip
           
(package private)  java.net.URL audioFileURL
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AudioFileLoader(java.lang.String resourceName)
           
 
Method Summary
 java.applet.AudioClip getAudioClip()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

audioFileURL

java.net.URL audioFileURL

audioClip

java.applet.AudioClip audioClip
Constructor Detail

AudioFileLoader

public AudioFileLoader(java.lang.String resourceName)
Method Detail

run

public void run()

getAudioClip

public java.applet.AudioClip getAudioClip()