Answers for "how to control clip volume java"

0

how to control clip volume java

public static void play(Clip clip) {
    if (Settings.getSettings().isVolumeOn()) {
        FloatControl volume = (FloatControl) clip.getControl(FloatControl.Type.MASTER_GAIN);
        volume.setValue(-1 * Settings.getSettings().getVolume());
        clip.start();
    }
}
Posted by: Guest on July-23-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language