/** * Returns whether the audio track has any pending data to play out at its current position. * * @param writtenFrames The number of frames written to the audio track. * @return Whether the audio track has any pending data to play out. */ public boolean hasPendingData(long writtenFrames) { return writtenFrames > getPlaybackHeadPosition() || forceHasPendingData(); }