Up-sample or down-sample a buffer.
Used if, for example, we need to play back a file which has a different sample rate than the current audio output rate.
This is an awful simplistic implementation.