The ID of the new sample.
The ID of the original sample.
The position where the slice begins.
The length of the slice.
0 on success, -1 if module don't support this feature, -2 if slice is out of bounds (longer than the sample, etc.), -3 if sample is not slicable (ADPCM, etc.).
Creates a new waveform from an existing one using slicing.