TIA: fix custom clock
but it changes pitch of everything
This commit is contained in:
parent
c2f83a3aef
commit
b41d8fe208
|
@ -356,12 +356,12 @@ void DivPlatformTIA::poke(std::vector<DivRegWrite>& wlist) {
|
||||||
|
|
||||||
void DivPlatformTIA::setFlags(const DivConfig& flags) {
|
void DivPlatformTIA::setFlags(const DivConfig& flags) {
|
||||||
if (flags.getInt("clockSel",0)) {
|
if (flags.getInt("clockSel",0)) {
|
||||||
rate=COLOR_PAL*4.0/5.0;
|
chipClock=COLOR_PAL*4.0/5.0;
|
||||||
} else {
|
} else {
|
||||||
rate=COLOR_NTSC;
|
chipClock=COLOR_NTSC;
|
||||||
}
|
}
|
||||||
CHECK_CUSTOM_CLOCK;
|
CHECK_CUSTOM_CLOCK;
|
||||||
chipClock=rate;
|
rate=chipClock;
|
||||||
mixingType=flags.getInt("mixingType",0)&3;
|
mixingType=flags.getInt("mixingType",0)&3;
|
||||||
for (int i=0; i<2; i++) {
|
for (int i=0; i<2; i++) {
|
||||||
oscBuf[i]->rate=rate/114;
|
oscBuf[i]->rate=rate/114;
|
||||||
|
|
Loading…
Reference in a new issue