mal_uint64framesToReadNow=(pResampler->config.format==mal_format_f32)?ppRunningFramesFrameCount:ppRunningFramesFrameCount*2;/* x2 for the s16 frame count because ppRunningFramesFrameCount is based on f32. */
/* Don't get stuck in a loop if the client returns no samples. */
if(framesRead<framesToRead){
break;
}
}
}
returntotalFramesRead;
/* What we're actually calculating here is how many whole output frames will be calculated after consuming inputFrameCount + mal_resampler_get_cached_input_time(). */