soundFile = f;
// prepare a dialog to display while playing
JOptionPane pane = new JOptionPane ("Playing " + f.getName(),
JOptionPane.PLAIN_MESSAGE);
playingDialog = pane.createDialog (null, "Streaming Sound");
playingDialog.pack();
player = new PCMFilePlayer (soundFile);
// player.line.addLineListener (this);
player.getLine().addLineListener (this);
player.start();