Java Sound offers FloatControl instances for various sound line functionality, and both a MASTER_GAIN & VOLUME control type.
FloatControl
Can these controls be
add following line just after Line is initialized. this is required to open the line.
boolean opened = line.isOpen() || line instanceof Clip; if(!opened){ System.out.println("Line is not open, trying to open it..."); line.open(); opened = true; }