fix psg ch3 regression introduced in r165

This commit is contained in:
MrWint 2019-05-25 18:08:14 +02:00
parent 8efcda388f
commit 2bd332c862
1 changed files with 3 additions and 6 deletions

View File

@ -168,12 +168,9 @@ void Channel3::update(uint_least32_t *buf, const unsigned long soBaseVol, unsign
break;
}
} else {
if (outBase) {
const unsigned long out = outBase * (0 - 15ul);
*buf += out - prevOut;
prevOut = out;
}
const unsigned long out = outBase * (0 - 15ul);
*buf += out - prevOut;
prevOut = out;
cycleCounter += cycles;