code: private static AudioInputStream openStream(Media media) throws IOException
      {
          try
          {
              return AudioSystem.getAudioInputStream(media.getInputStream());
          }
          catch (final UnsupportedAudioFileException exception)
          {
              throw new IOException(ERROR_PLAY_SOUND + media.getPath(), exception);
          }
      }
docs: Open the audio stream and prepare it.
  
  @param media The audio media.
  @return The audio source data.
  @throws IOException If error when reading the audio file.
  @throws LionEngineException If error when getting the stream.