don't correct DC offset if setting is off
This commit is contained in:
parent
717e75f82d
commit
64ef082650
|
@ -171,9 +171,11 @@ void DivDispatchContainer::fillBuf(size_t runtotal, size_t offset, size_t size)
|
||||||
|
|
||||||
if (dcOffCompensation && runtotal>0) {
|
if (dcOffCompensation && runtotal>0) {
|
||||||
dcOffCompensation=false;
|
dcOffCompensation=false;
|
||||||
for (int i=0; i<outs; i++) {
|
if (hiPass) {
|
||||||
if (bbIn[i]==NULL) continue;
|
for (int i=0; i<outs; i++) {
|
||||||
prevSample[i]=bbIn[i][0];
|
if (bbIn[i]==NULL) continue;
|
||||||
|
prevSample[i]=bbIn[i][0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (lowQuality) {
|
if (lowQuality) {
|
||||||
|
@ -220,7 +222,7 @@ void DivDispatchContainer::clear() {
|
||||||
prevSample[i]=0;
|
prevSample[i]=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dispatch->getDCOffRequired()) {
|
if (dispatch->getDCOffRequired() && hiPass) {
|
||||||
dcOffCompensation=true;
|
dcOffCompensation=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue