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.master
| speed.min_sample_len = 420 - (wpm - 440); | 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.pause_factor = (256 * s1)/115; // full speed adjustment, used for pause length | ||||
| speed.clause_pause_factor = 0; | speed.clause_pause_factor = 0; | ||||