cleanup: remove setting samplerate with Sonic.

we currently only support 22050 as samplerate so this code has no
effect. This should be readded to setSpeed() with and without Sonic if
multiple samplerates are supported in the future.
This commit is contained in:
Juho Hiltunen
2022-10-25 18:24:27 +03:00
parent bc16f819dd
commit a4c70d7921
-5
View File
@@ -303,11 +303,6 @@ static void SetSpeedMods(int wpm, int x) {
speed.min_sample_len = 420 - (wpm - 440);
}
#if HAVE_SONIC_H
// adjust for different sample rates
speed.min_sample_len = (speed.min_sample_len * samplerate_native) / 22050;
#endif
speed.pause_factor = (256 * s1)/115; // full speed adjustment, used for pause length
speed.clause_pause_factor = 0;