Sets the first and last sample frames that will be played in
the loop. The ending point must be greater than
or equal to the starting point, and both must fall within the
the size of the loaded media. A value of 0 for the starting
point means the beginning of the loaded media. Similarly, a value of -1
for the ending point indicates the last frame of the media.
Parameters:
-
start - the loop's starting position, in sample frames (zero-based)
-
end - the loop's ending position, in sample frames (zero-based), or
-1 to indicate the final frame
Throws:
-
IllegalArgumentException - if the requested
loop points cannot be set, usually because one or both falls outside
the media's duration or because the ending point is
before the starting point