public void play() { isPlaying = true; while (pl.isEmpty()) { Song s = pl.removeNextToPlay(); // sent to speaker. } isPlaying = false; }