} else {
try {
if (clip != null) {
clip.stop();
}
LineInputReader reader = new LineInputReader(FFT_LEN);
reader.startRecording();
while(!terminated) {
runTransform(reader.getNextFrame());
}
reader.stopRecording();
} catch (LineUnavailableException e) {
JOptionPane.showMessageDialog(parent, e.getMessage());
}
}
} catch (InterruptedException e) {