AY: add 1.10 and 2.10 rates
This commit is contained in:
parent
e0eb0ad3f4
commit
2bfb84cd1e
|
@ -491,6 +491,12 @@ void DivPlatformAY8910::setFlags(unsigned int flags) {
|
||||||
case 8:
|
case 8:
|
||||||
chipClock=COLOR_PAL*3.0/16.0;
|
chipClock=COLOR_PAL*3.0/16.0;
|
||||||
break;
|
break;
|
||||||
|
case 9:
|
||||||
|
chipClock=COLOR_PAL/4.0;
|
||||||
|
break;
|
||||||
|
case 10:
|
||||||
|
chipClock=2097152;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
chipClock=COLOR_NTSC/2.0;
|
chipClock=COLOR_NTSC/2.0;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -552,6 +552,12 @@ void DivPlatformAY8930::setFlags(unsigned int flags) {
|
||||||
case 8:
|
case 8:
|
||||||
chipClock=COLOR_PAL*3.0/16.0;
|
chipClock=COLOR_PAL*3.0/16.0;
|
||||||
break;
|
break;
|
||||||
|
case 9:
|
||||||
|
chipClock=COLOR_PAL/4.0;
|
||||||
|
break;
|
||||||
|
case 10:
|
||||||
|
chipClock=2097152;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
chipClock=COLOR_NTSC/2.0;
|
chipClock=COLOR_NTSC/2.0;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -194,6 +194,8 @@ struct DivSong {
|
||||||
// - 6: 0.89MHz (Sunsoft 5B)
|
// - 6: 0.89MHz (Sunsoft 5B)
|
||||||
// - 7: 1.67MHz
|
// - 7: 1.67MHz
|
||||||
// - 8: 0.83MHz (Sunsoft 5B on PAL)
|
// - 8: 0.83MHz (Sunsoft 5B on PAL)
|
||||||
|
// - 9: 1.10MHz (Gamate/VIC-20 PAL)
|
||||||
|
// - 10: 2.097152MHz (Game Boy)
|
||||||
// - bit 4-5: chip type (ignored on AY8930)
|
// - bit 4-5: chip type (ignored on AY8930)
|
||||||
// - 0: AY-3-8910 or similar
|
// - 0: AY-3-8910 or similar
|
||||||
// - 1: YM2149
|
// - 1: YM2149
|
||||||
|
|
|
@ -4818,6 +4818,14 @@ bool FurnaceGUI::loop() {
|
||||||
e->setSysFlags(i,(flags&(~15))|8,restart);
|
e->setSysFlags(i,(flags&(~15))|8,restart);
|
||||||
updateWindowTitle();
|
updateWindowTitle();
|
||||||
}
|
}
|
||||||
|
if (ImGui::RadioButton("1.10MHz (Gamate/VIC-20 PAL)",(flags&15)==9)) {
|
||||||
|
e->setSysFlags(i,(flags&(~15))|9,restart);
|
||||||
|
updateWindowTitle();
|
||||||
|
}
|
||||||
|
if (ImGui::RadioButton("2^21Hz (Game Boy)",(flags&15)==10)) {
|
||||||
|
e->setSysFlags(i,(flags&(~15))|10,restart);
|
||||||
|
updateWindowTitle();
|
||||||
|
}
|
||||||
if (e->song.system[i]==DIV_SYSTEM_AY8910) {
|
if (e->song.system[i]==DIV_SYSTEM_AY8910) {
|
||||||
ImGui::Text("Chip type:");
|
ImGui::Text("Chip type:");
|
||||||
if (ImGui::RadioButton("AY-3-8910",(flags&0x30)==0)) {
|
if (ImGui::RadioButton("AY-3-8910",(flags&0x30)==0)) {
|
||||||
|
|
Loading…
Reference in a new issue