/** * Requests playback stop. Method initiate shutdown and return immediate. Playback stops later. */ public void stop() { interruptPlayback(PlayerState.STOPPED); currentSeekPositionMcsec = 0; currentPlayTimeMcsec = 0; SourceDataLine l = currentDataLine; if (l != null) { try { l.stop(); } catch (Throwable ignoredT) { // be silent } } }
/** Requests pause. Returns immediate. */ public void pause() { interruptPlayback(PlayerState.PAUSED); }