tabs
This commit is contained in:
parent
a755ff4484
commit
d8aaa3e5a4
|
@ -241,8 +241,13 @@ public class MultiClip {
|
||||||
*/
|
*/
|
||||||
public void mute() {
|
public void mute() {
|
||||||
try {
|
try {
|
||||||
((FloatControl) getClip().getControl(FloatControl.Type.MASTER_GAIN)).setValue((float) (Math.log(Float.MIN_VALUE) / Math.log(10.0) * 20.0));
|
Clip c = getClip();
|
||||||
} catch (Exception e) {
|
if (c == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
((FloatControl) c.getControl(FloatControl.Type.MASTER_GAIN)).setValue((float) (Math.log(Float.MIN_VALUE) / Math.log(10.0) * 20.0));
|
||||||
|
} catch (LineUnavailableException e) {
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user