mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:24:03 +02:00
correct sample delay pulls with negative index
This commit is contained in:
parent
bbe525412f
commit
ff0d31857a
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ int16_t* AudioRingBuffer::shiftedPositionAccomodatingWrap(int16_t* position, int
|
|||
return position + numSamplesShift - _sampleCapacity;
|
||||
} else if (numSamplesShift < 0 && position + numSamplesShift < _buffer) {
|
||||
// this shift will go around to the end of the ring
|
||||
return position + numSamplesShift - _sampleCapacity;
|
||||
return position + numSamplesShift + _sampleCapacity;
|
||||
} else {
|
||||
return position + numSamplesShift;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue