Class Audio

  • All Implemented Interfaces:
    java.lang.Runnable

    public class Audio
    extends java.lang.Thread
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Thread

        java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.sound.sampled.AudioInputStream audioInputStream  
      (package private) javax.sound.sampled.SourceDataLine line  
      • Fields inherited from class java.lang.Thread

        MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
    • Constructor Summary

      Constructors 
      Constructor Description
      Audio()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      • 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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • line

        javax.sound.sampled.SourceDataLine line
    • Constructor Detail

    • 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.