public void loop() 
   {
      if (volume != Volume.MUTE) 
      {
         if (!clip.isRunning())
         {
            clip.setFramePosition(0); // rewind to the beginning
            clip.start();     // Start playing
         }
      }
   }