A method and system for calculating resample output values from input
samples and their associated sample values. A resampling circuit
calculates a frequency value for a sine-wave model from a sample set of
the input samples and determines whether the frequency value is in a
frequency range. In the case where the frequency value is in the
frequency range, a sinusoidal transition model is determined based on the
sample set. However, if the frequency value is outside of the frequency
range, a non-sinusoidal model is determined based on the sample set. The
resampling circuit then calculates resample output values from the
resulting sinusoidal or non-sinusoidal model.