List of usage examples for javafx.scene.media AudioClip play
public void play(double volume)
AudioClip
using all the default parameters except volume. From source file:org.sociotech.unui.javafx.engine2d.AbstractWorld.java
public void playAudioClip(String audioClipName, double volume) { // Play Audio ResourceManager<AudioClip> audioResourceManager = getAudioResourceManager(); AudioClip audioClip = audioResourceManager.get(audioClipName); if (audioClip != null) { audioClip.play(volume); }/* w w w .j ava 2 s . co m*/ }