crop
Crops this wave to the specified start and end frame indices, which can be set to any positive integer values between 0 and frameCount - 1.
After calling this function, the wave will be modified to contain only the audio data between the specified start and end frame indices.
Parameters
start
The starting frame index to crop from, which must be between 0 and frameCount - 1.
end
The ending frame index to crop to, which must be between 0 and frameCount - 1, and must be greater than the start index.
Throws
Illegal Argument Exception
if the start or end indices are not between 0 and frameCount - 1, or if the start index is not less than the end index.