return false;
}
@Override
public void setVolume(int percent) {
FloatControl volume = (FloatControl) line
.getControl(FloatControl.Type.MASTER_GAIN);
float max = volume.getMaximum();
float min = volume.getMinimum();
float range = 0;
if (max < 0) {
range = Math.abs(min) - Math.abs(max);
} else {
if (min >= 0) {
range = max - min;
} else {
range = Math.abs(min) + max;
}
}
float value = percent * range / 100F;
volume.setValue(min + value);
}