- // index in the input buffers
- framecnt_t i = 0;
-
- double acceleration;
- double distance = 0.0;
-
- if (_speed != _target_speed) {
- acceleration = _target_speed - _speed;
- } else {
- acceleration = 0.0;
- }
-
- distance = phase[channel];
-
- if (nframes < 3) {
- /* no interpolation possible */
-
- if (input && output) {
- for (i = 0; i < nframes; ++i) {
- output[i] = input[i];
- }
- }
-
- return nframes;
- }
-
- /* keep this condition out of the inner loop */
-
- if (input && output) {