opti
This commit is contained in:
parent
670c681a71
commit
ef7e16baaa
|
@ -201,6 +201,9 @@ void DivDispatchContainer::fillBuf(size_t runtotal, size_t offset, size_t size)
|
||||||
prevSample[i]=bbIn[i][0];
|
prevSample[i]=bbIn[i][0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// I know, code duplication, but optimization...
|
||||||
|
if (rateMul) {
|
||||||
if (lowQuality) {
|
if (lowQuality) {
|
||||||
for (int i=0; i<outs; i++) {
|
for (int i=0; i<outs; i++) {
|
||||||
if (bbIn[i]==NULL) continue;
|
if (bbIn[i]==NULL) continue;
|
||||||
|
@ -225,8 +228,29 @@ void DivDispatchContainer::fillBuf(size_t runtotal, size_t offset, size_t size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rateMul) {
|
|
||||||
fillSub=(fillSub+runtotal)&((1<<rateMul)-1);
|
fillSub=(fillSub+runtotal)&((1<<rateMul)-1);
|
||||||
|
} else {
|
||||||
|
if (lowQuality) {
|
||||||
|
for (int i=0; i<outs; i++) {
|
||||||
|
if (bbIn[i]==NULL) continue;
|
||||||
|
if (bb[i]==NULL) continue;
|
||||||
|
for (size_t j=0; j<runtotal; j++) {
|
||||||
|
temp[i]=bbIn[i][j];
|
||||||
|
blip_add_delta_fast(bb[i],j,temp[i]-prevSample[i]);
|
||||||
|
prevSample[i]=temp[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
for (int i=0; i<outs; i++) {
|
||||||
|
if (bbIn[i]==NULL) continue;
|
||||||
|
if (bb[i]==NULL) continue;
|
||||||
|
for (size_t j=0; j<runtotal; j++) {
|
||||||
|
temp[i]=bbIn[i][j];
|
||||||
|
blip_add_delta(bb[i],j,temp[i]-prevSample[i]);
|
||||||
|
prevSample[i]=temp[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; i<outs; i++) {
|
for (int i=0; i<outs; i++) {
|
||||||
|
|
Loading…
Reference in a new issue