Remove extraneous code

This commit is contained in:
Ken Cooke 2016-09-06 17:09:59 -07:00
parent b47000eab2
commit 284bbfdf06

View file

@ -1228,21 +1228,3 @@ int AudioSRC::getMaxInput(int outputFrames) {
return (int)(((int64_t)outputFrames * _step) >> 32);
}
}
// the input frames that will produce exactly outputFrames
int AudioSRC::getExactInput(int outputFrames) {
//
// For upsampling, a correct implementation is more complicated
// because it requires early exit of the multirate filter.
// This is not currently supported.
//
if (_upFactor > _downFactor) {
return -1;
}
if (_step == 0) {
int64_t offset = ((int64_t)_phase * _downFactor) % _upFactor;
return (int)(((int64_t)outputFrames * _downFactor + offset) / _upFactor);
} else {
return (int)(((int64_t)outputFrames * _step + _offset) >> 32);
}
}