ABSTRACT

This chapter presents an intuition for resampling works, and derives some code for a linear resampler. More precisely, sample-rate conversion is the process of changing the sampling rate of a discrete signal to obtain a new discrete representation of the underlying continuous signal. Most of the literature either describes it using vague mathematical constructs or describes it in terms of hardware and wiring. There are innumerable interpolation functions that work, and they all have different frequency response properties, typically at the cost of memory. Resampling is fundamental to the operation of an audio engine. It is important to have an intuitive understanding of the audio engine at a low level if actually code is not written at the level of algorithm. The code in the chapter is just a starting point—there are plenty of opportunities for optimizations, and many other resampling algorithms with different aural properties.