SPKitCutter defines a setTimeSlice() function for setting an offset and a duration (both in seconds) for selecting a part of the input signal. SPKitCutter disgards all input signal samples preceeding offset and outputs the subsequent samples until its specified duration is reached. SPKitCutter overrides both setInput() and getSample().
Calls SPKitProcessor::setInput().
Upon the first call, getSample() repeatedly calls requests samples from its input until offset is reached. Thereafter, it returns one sample at a time until the duration (stored in dur) is reached. getSample() stores the processed sample in outputSample. It returns 0 if either its input runs out of samples or its signal duration is reached. Otherwise, it returns 1.
Author: Kai Lassfolk