@ Override public void pausePlayback ( ) { if ( isNotPausingNorPaused ( ) && isNotStoppingNorStopped ( ) ) { setIsPausing ( ) ; while ( ! isPaused ( ) && ! isStopped ( ) ) { try { Thread . sleep ( 1 ) ; } catch ( InterruptedException ex ) { /*noop*/ } } stopLine ( ) ; } else if ( isPaused ( ) ) { startLine ( ) ; setIsPlaying ( ) ; } }
Halts the playback Will wait until playback halted