コード例 #1
0
 /**
  * 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
     }
   }
 }
コード例 #2
0
 /** Requests pause. Returns immediate. */
 public void pause() {
   interruptPlayback(PlayerState.PAUSED);
 }