src/tempo/tempo.c: fix for different samplerates