You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
444 B
26 lines
444 B
package visualiser.model;
|
|
|
|
|
|
import javafx.scene.media.AudioClip;
|
|
|
|
/**
|
|
* Created by Gondr on 9/10/2017.
|
|
*/
|
|
public class SeagullSound {
|
|
|
|
private AudioClip sound;
|
|
|
|
public SeagullSound(String file){
|
|
this.sound = new AudioClip(file);
|
|
}
|
|
|
|
public void setVolume(double volume){
|
|
sound.setVolume(volume);
|
|
sound.volumeProperty().setValue(volume);
|
|
}
|
|
|
|
public void play(){
|
|
this.sound.play();
|
|
}
|
|
}
|