Esempio n. 1
0
  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);
      }
    }
  }
Esempio n. 2
0
  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);
      }
    }
  }
Esempio n. 3
0
 public void setSelected(boolean bSelected) {
   control.setValue(bSelected);
 }