摘要 |
A sample rate converter (200) is described for converting an input data stream including a plurality of input samples (X) at one sample rate to an output data stream including a plurality of output samples (Y) at another sample rate. The converter uses an interpolation approach that utilizes an integer accumulator (220) to track the timing relation between input samples and output samples. Based on the value of the accumulator, the method determines if the correct input samples are being used to calculate the current output sample. If so, the output sample is calculated as a function of the input samples and the accumulator value. The converter provides the robustness of a table based conversion approach without the need to precalculate and store a table, simplifies the calculations involved, and is less sensitive to numeric round off errors.
|