public void activate() { active = true; microphone.flush(); speaker.flush(); speaker.start(); blocker.release(); microphone.start(); microphone.flush(); }
public void actionPerformed(ActionEvent ev) { String action = ev.getActionCommand(); if (action.equals("ok")) { cancelled = false; if (dialog != null) { dialog.dispose(); } blocker.release(); } else if (action.equals("cancel")) { cancelled = true; if (dialog != null) { dialog.dispose(); } blocker.release(); } else if (setType(action)) { } else if (setBPP(action)) { } else { } }
public void pickup() { pickup.release(); }