line.stop(); line.flush();
try { Thread.sleep(cancelDelay); } catch (InterruptedException ie) { ie.printStackTrace(); } synchronized (line) { line.stop(); line.flush(); }
    public synchronized void cancel() {	cancelled = true;	line.stop();	line.flush();	notify();    }