fixed resamplers again...

This commit is contained in:
Ryzerth 2020-07-20 17:21:58 +02:00
parent 07d3fa2034
commit 0dc14c663a
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -320,7 +320,7 @@ namespace dsp {
complex_t* delayStart = &inBuf[std::max<int>(inCount - tapCount, 0)]; complex_t* delayStart = &inBuf[std::max<int>(inCount - tapCount, 0)];
int delaySize = tapCount * sizeof(complex_t); int delaySize = tapCount * sizeof(complex_t);
complex_t* delayBufEnd = &delayBuf[std::max<int>(tapCount - inCount, 0)]; complex_t* delayBufEnd = &delayBuf[std::max<int>(tapCount - inCount, 0)];
int moveSize = (tapCount - inCount) * sizeof(complex_t); int moveSize = std::min<int>(inCount, tapCount - inCount) * sizeof(complex_t);
int inSize = inCount * sizeof(complex_t); int inSize = inCount * sizeof(complex_t);
int interp = _this->_interp; int interp = _this->_interp;
@ -514,7 +514,7 @@ namespace dsp {
float* delayStart = &inBuf[std::max<int>(inCount - tapCount, 0)]; float* delayStart = &inBuf[std::max<int>(inCount - tapCount, 0)];
int delaySize = tapCount * sizeof(float); int delaySize = tapCount * sizeof(float);
float* delayBufEnd = &delayBuf[std::max<int>(tapCount - inCount, 0)]; float* delayBufEnd = &delayBuf[std::max<int>(tapCount - inCount, 0)];
int moveSize = (tapCount - inCount) * sizeof(float); int moveSize = std::min<int>(inCount, tapCount - inCount) * sizeof(float);
int inSize = inCount * sizeof(float); int inSize = inCount * sizeof(float);
int interp = _this->_interp; int interp = _this->_interp;