Calculates resampled length of the input for the given input/output sample rates.
Returns Number.NAN when the input length or the output sample rate is too large.
Number.NAN
This function shouldn't be used when processing audio track in chunks; use ChunkedResampler.maxNumOutputFrames instead.
input length
input sample rate in Hz
output sample rate in Hz
Calculates resampled length of the input for the given input/output sample rates.
Edge cases
Returns
Number.NANwhen the input length or the output sample rate is too large.Limitations
This function shouldn't be used when processing audio track in chunks; use ChunkedResampler.maxNumOutputFrames instead.