tabs
This commit is contained in:
parent
a755ff4484
commit
d8aaa3e5a4
|
@ -241,8 +241,13 @@ public class MultiClip {
|
|||
*/
|
||||
public void mute() {
|
||||
try {
|
||||
((FloatControl) getClip().getControl(FloatControl.Type.MASTER_GAIN)).setValue((float) (Math.log(Float.MIN_VALUE) / Math.log(10.0) * 20.0));
|
||||
} catch (Exception e) {
|
||||
Clip c = getClip();
|
||||
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