docs: public int millisecondsToX(long milliseconds) {
          if (duration.get() < 1) {  // Don't crash if we are missing duration information.
              return 0;
          }
          long result = milliseconds * waveformWidth() / (duration.get() * 1000);
          return WAVEFORM_MARGIN + Math.max(0, Math.min(waveformWidth(), (int) result));
      }