// At this point we have a bunch of frames that the client has given to us for processing. From this we can determine the maximum number of output frames
// At this point we have a bunch of frames that the client has given to us for processing. From this we can determine the maximum number of output frames
// that can be processed from this input. We want to output as many samples as possible from our input data.
// that can be processed from this input. We want to output as many samples as possible from our input data.
float tAvailable = framesReadFromClient - tBeg;
float tAvailable = framesReadFromClient - tBeg - 1; // Subtract 1 because the last input sample is needed for interpolation and cannot be included in the output sample count calculation.