attempt to fix problem with muting applause

This commit is contained in:
yugecin 2016-10-15 10:48:33 +02:00
parent b670e8aaba
commit 05ca421d78

View File

@ -245,7 +245,11 @@ public class MultiClip {
if (c == null) { if (c == null) {
return; return;
} }
((FloatControl) c.getControl(FloatControl.Type.MASTER_GAIN)).setValue((float) (Math.log(Float.MIN_VALUE) / Math.log(10.0) * 20.0)); float val = (float) (Math.log(Float.MIN_VALUE) / Math.log(10.0) * 20.0);
if (val < -80.0f) {
val = -80.0f;
}
((FloatControl) c.getControl(FloatControl.Type.MASTER_GAIN)).setValue(val);
} catch (LineUnavailableException e) { } catch (LineUnavailableException e) {
e.printStackTrace(); e.printStackTrace();
} }