setRepeatCount method

void setRepeatCount(
  1. int count
)

Set repeat count: 0 = off, >0 = repeat N times, -1 = infinite.

Implementation

void setRepeatCount(int count) {
  _repeatCount = count;
  _currentRepeat = 0;
}