docs: @SuppressWarnings("WeakerAccess")
      public int segmentHeight(final int segment, final int scale) {
          final ByteBuffer waveBytes = getData();
          final int limit = getFrameCount();
          int sum = 0;
          for (int i = segment; (i < segment + scale) && (i < limit); i++) {
              if (isColor) {
                  sum += (getColorWaveformBits(waveBytes, segment) >> 2) & 0x1f;
              } else {
                  sum += waveBytes.get(i) & 0x1f;
              }
          }
          return sum / scale;
      }