N163: fix channel count change glitch, part 1

This commit is contained in:
tildearrow 2022-09-08 03:01:22 -05:00
parent 4ad324bfed
commit 7de165fd88

View file

@ -642,6 +642,9 @@ void DivPlatformN163::setFlags(unsigned int flags) {
for (int i=0; i<8; i++) {
oscBuf[i]->rate=rate/(initChanMax+1);
}
// needed to make sure changing channel count won't trigger glitches
reset();
}
int DivPlatformN163::init(DivEngine* p, int channels, int sugRate, unsigned int flags) {