Merge branch 'master' of https://github.com/worklist/hifi into 19461

This commit is contained in:
Stojce Slavkovski 2013-12-17 21:00:07 +01:00
commit 8faa6718a5

View file

@ -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;
}