AudioFile.h - how to play sample at different sampleRate?

i just found this post while searching.

is it really as simple as just incrementing the sample position by (file_sample_rate / rack_sample_rate)? that seems too simple for some reason.