Class Audio
- java.lang.Object
-
- java.lang.Thread
-
- Audio
-
- All Implemented Interfaces:
java.lang.Runnable
public class Audio extends java.lang.Thread
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.sound.sampled.AudioInputStreamaudioInputStream(package private) javax.sound.sampled.SourceDataLineline
-
Constructor Summary
Constructors Constructor Description Audio()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(java.lang.String pSon)Méthode permettant de contourner les diverses possibles exceptions en chargeant la musique à partir d'un fichier entré en paramtètre et lance la musique.-
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
audioInputStream
javax.sound.sampled.AudioInputStream audioInputStream
-
line
javax.sound.sampled.SourceDataLine line
-
-
Constructor Detail
-
Audio
public Audio()
-
-
Method Detail
-
run
public void run(java.lang.String pSon)
Méthode permettant de contourner les diverses possibles exceptions en chargeant la musique à partir d'un fichier entré en paramtètre et lance la musique.- Parameters:
pSon- le nom de la musique.
-
-