mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 05:25:12 +00:00
N163: fix channel count change glitch, part 1
This commit is contained in:
parent
4ad324bfed
commit
7de165fd88
1 changed files with 3 additions and 0 deletions
|
@ -642,6 +642,9 @@ void DivPlatformN163::setFlags(unsigned int flags) {
|
||||||
for (int i=0; i<8; i++) {
|
for (int i=0; i<8; i++) {
|
||||||
oscBuf[i]->rate=rate/(initChanMax+1);
|
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) {
|
int DivPlatformN163::init(DivEngine* p, int channels, int sugRate, unsigned int flags) {
|
||||||
|
|
Loading…
Reference in a new issue