pResampler->state.linear.t=1;/* Important that we set this to 1. This will cause the logic below to load the _second_ frame so we can do correct interpolation. */
}
}
for(;;){
/* We can't interpolate if our interpolation factor (time relative to x0) is greater than 1. */
if(pResampler->state.linear.t>1){
/* Need to load the next input frame. */
iFrameIn+=(ma_uint64)pResampler->state.linear.t;
if(iFrameIn<frameCountIn){
/* We have enough input frames remaining to bring the time down to 0..1. */