offsetTime static method

void offsetTime(
  1. List<LyricSrcItemEntity_c> lrclist,
  2. double offset
)

lrclist 整体时间都偏移 offset

Implementation

static void offsetTime(List<LyricSrcItemEntity_c> lrclist, double offset) {
  if (offset == 0) {
    return;
  }
  for (int i = 0; i < lrclist.length; ++i) {
    if (lrclist[i].time > 0) {
      lrclist[i].time += offset;
    }
  }
}