Check out example codes for "how to control clip volume java". It will help you in understanding the concepts better.

Code Example 1

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();
    }
}

Learn ReactJs, React Native from akashmittal.com