Game Boy: fix custom clock
This commit is contained in:
parent
2a4eb1e2be
commit
8d21948431
|
|
@ -664,9 +664,7 @@ void DivPlatformGB::setFlags(const DivConfig& flags) {
|
||||||
}
|
}
|
||||||
invertWave=flags.getBool("invertWave",true);
|
invertWave=flags.getBool("invertWave",true);
|
||||||
enoughAlready=flags.getBool("enoughAlready",false);
|
enoughAlready=flags.getBool("enoughAlready",false);
|
||||||
}
|
|
||||||
|
|
||||||
int DivPlatformGB::init(DivEngine* p, int channels, int sugRate, const DivConfig& flags) {
|
|
||||||
chipClock=4194304;
|
chipClock=4194304;
|
||||||
CHECK_CUSTOM_CLOCK;
|
CHECK_CUSTOM_CLOCK;
|
||||||
rate=chipClock/16;
|
rate=chipClock/16;
|
||||||
|
|
@ -675,6 +673,9 @@ int DivPlatformGB::init(DivEngine* p, int channels, int sugRate, const DivConfig
|
||||||
oscBuf[i]=new DivDispatchOscBuffer;
|
oscBuf[i]=new DivDispatchOscBuffer;
|
||||||
oscBuf[i]->rate=rate;
|
oscBuf[i]->rate=rate;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
int DivPlatformGB::init(DivEngine* p, int channels, int sugRate, const DivConfig& flags) {
|
||||||
parent=p;
|
parent=p;
|
||||||
dumpWrites=false;
|
dumpWrites=false;
|
||||||
skipRegisterWrites=false;
|
skipRegisterWrites=false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue