fix front/rear being inverted

This commit is contained in:
tildearrow 2023-01-07 16:39:01 -05:00
parent 4b85ec433b
commit e0785d9f00

View file

@ -1744,17 +1744,17 @@ void DivEngine::nextBuf(float** in, float** out, int inChans, int outChans, unsi
switch (destSubPort&3) {
case 0:
vol*=MIN(1.0f,1.0f-song.systemPan[srcPortSet])*MIN(1.0f,1.0f-song.systemPanFR[srcPortSet]);
break;
case 1:
vol*=MIN(1.0f,1.0f+song.systemPan[srcPortSet])*MIN(1.0f,1.0f-song.systemPanFR[srcPortSet]);
break;
case 2:
vol*=MIN(1.0f,1.0f-song.systemPan[srcPortSet])*MIN(1.0f,1.0f+song.systemPanFR[srcPortSet]);
break;
case 3:
case 1:
vol*=MIN(1.0f,1.0f+song.systemPan[srcPortSet])*MIN(1.0f,1.0f+song.systemPanFR[srcPortSet]);
break;
case 2:
vol*=MIN(1.0f,1.0f-song.systemPan[srcPortSet])*MIN(1.0f,1.0f-song.systemPanFR[srcPortSet]);
break;
case 3:
vol*=MIN(1.0f,1.0f+song.systemPan[srcPortSet])*MIN(1.0f,1.0f-song.systemPanFR[srcPortSet]);
break;
}
for (size_t j=0; j<size; j++) {