code: private static void close(AudioInputStream input, DataLine dataLine) throws IOException
      {
          dataLine.drain();
          dataLine.flush();
          dataLine.stop();
          dataLine.close();
          input.close();
      }
docs: Flush and close audio data and stream.
  
  @param input The audio input.
  @param dataLine Audio source data.
  @throws IOException If error on closing.