Remove condition duplication
This commit is contained in:
parent
3a4197c464
commit
6ba1f3dfdd
|
@ -103,11 +103,9 @@ void DivPlatformK007232::tick(bool sysTick) {
|
||||||
signed char macroVol=((chan[i].vol&0xf)*MIN(chan[i].macroVolMul,chan[i].std.vol.val))/chan[i].macroVolMul;
|
signed char macroVol=((chan[i].vol&0xf)*MIN(chan[i].macroVolMul,chan[i].std.vol.val))/chan[i].macroVolMul;
|
||||||
if ((!isMuted[i]) && (macroVol!=chan[i].outVol)) {
|
if ((!isMuted[i]) && (macroVol!=chan[i].outVol)) {
|
||||||
chan[i].outVol=macroVol;
|
chan[i].outVol=macroVol;
|
||||||
if (!isMuted[i]) {
|
|
||||||
chan[i].volumeChanged=true;
|
chan[i].volumeChanged=true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (chan[i].std.arp.had) {
|
if (chan[i].std.arp.had) {
|
||||||
if (!chan[i].inPorta) {
|
if (!chan[i].inPorta) {
|
||||||
chan[i].baseFreq=NOTE_PERIODIC(parent->calcArp(chan[i].note,chan[i].std.arp.val));
|
chan[i].baseFreq=NOTE_PERIODIC(parent->calcArp(chan[i].note,chan[i].std.arp.val));
|
||||||
|
|
Loading…
Reference in a new issue