tiny playback optimization
This commit is contained in:
parent
2dde6159a1
commit
3b151a78a5
|
|
@ -172,6 +172,7 @@ void DivDispatchContainer::fillBuf(size_t runtotal, size_t offset, size_t size)
|
||||||
if (bbIn[i]==NULL) continue;
|
if (bbIn[i]==NULL) continue;
|
||||||
if (bb[i]==NULL) continue;
|
if (bb[i]==NULL) continue;
|
||||||
for (size_t j=0; j<runtotal; j++) {
|
for (size_t j=0; j<runtotal; j++) {
|
||||||
|
if (bbIn[i][j]==temp[i]) continue;
|
||||||
temp[i]=bbIn[i][j];
|
temp[i]=bbIn[i][j];
|
||||||
blip_add_delta_fast(bb[i],j,temp[i]-prevSample[i]);
|
blip_add_delta_fast(bb[i],j,temp[i]-prevSample[i]);
|
||||||
prevSample[i]=temp[i];
|
prevSample[i]=temp[i];
|
||||||
|
|
@ -182,6 +183,7 @@ void DivDispatchContainer::fillBuf(size_t runtotal, size_t offset, size_t size)
|
||||||
if (bbIn[i]==NULL) continue;
|
if (bbIn[i]==NULL) continue;
|
||||||
if (bb[i]==NULL) continue;
|
if (bb[i]==NULL) continue;
|
||||||
for (size_t j=0; j<runtotal; j++) {
|
for (size_t j=0; j<runtotal; j++) {
|
||||||
|
if (bbIn[i][j]==temp[i]) continue;
|
||||||
temp[i]=bbIn[i][j];
|
temp[i]=bbIn[i][j];
|
||||||
blip_add_delta(bb[i],j,temp[i]-prevSample[i]);
|
blip_add_delta(bb[i],j,temp[i]-prevSample[i]);
|
||||||
prevSample[i]=temp[i];
|
prevSample[i]=temp[i];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue