private void checkStop(){
  if (mCanProcessAudio && mOutput.isRunning() && mOutput.available() >= mBufferStopThreshold) {
    mOutput.drain();
    mOutput.stop();
  }
}

private void checkStop ( ) { if ( mCanProcessAudio && mOutput . isRunning ( ) && mOutput . available ( ) >= mBufferStopThreshold ) { mOutput . drain ( ) ; mOutput . stop ( ) ; } }
stops audio playback and drains the audio buffer to empty when the audio buffer is mostly empty and the available buffer capacity exceeds the stop threshold
