public void setMicrophoneInput() { TreePath path = findByName(new TreePath(root), new String[] {"MICROPHONE", "Select"}); if (path == null) { path = findByName(new TreePath(root), new String[] {"Capture source", "Capture", "Mute"}); } if (path != null) { if (path.getLastPathComponent() instanceof JavaMixer.ControlNode) { BooleanControl bControl = (BooleanControl) (((JavaMixer.ControlNode) path.getLastPathComponent()).getControl()); bControl.setValue(true); } } }
public void setMuteForMicrophoneOutput() { TreePath path = findByName(new TreePath(root), new String[] {"SPEAKER", "Microfone", "Mute"}); if (path == null) { path = findByName(new TreePath(root), new String[] {"MIC target", "mic", "Mute"}); } if (path != null) { if (path.getLastPathComponent() instanceof JavaMixer.ControlNode) { BooleanControl bControl = (BooleanControl) (((JavaMixer.ControlNode) path.getLastPathComponent()).getControl()); bControl.setValue(true); } } }
public void setSelected(boolean bSelected) { control.setValue(bSelected); }