mirror of
https://github.com/overte-org/overte.git
synced 2025-06-03 10:51:17 +02:00
Remove extraneous code
This commit is contained in:
parent
b47000eab2
commit
284bbfdf06
1 changed files with 0 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue