コード例 #1
0
  /**
   * Sets if the audio position should be overridden, allowing the time to be restarted at will.
   * This is useful for streaming audio where the audio doesn't have breaks between songs.
   *
   * @param override True if the position should be overridden
   */
  public void overridePosition(boolean override) {
    if (override) {
      overriddenPositionStopWatch.start();
    } else {
      overriddenPositionStopWatch.stop();
    }

    overridePosition = override;
  }