audioInputStream = AudioSystem.getAudioInputStream(resourceURL);
AudioFormat audioFormat = audioInputStream.getFormat();
DataLine.Info dataLineInfo = new DataLine.Info(Clip.class, audioFormat);
Clip clip = getClip(dataLineInfo);
clip.open(audioInputStream);
FloatControl volctrl=(FloatControl)clip.getControl(FloatControl.Type.MASTER_GAIN);
volctrl.setValue(volume);
clip.start();
} catch (UnsupportedAudioFileException ex) {
resourceLogger.log(Level.SEVERE, null, ex);
} catch (LineUnavailableException ex) {
resourceLogger.warning("cannot play audio resource, due to " + ex.getLocalizedMessage());