add ability to select custom clock rates

This commit is contained in:
tildearrow 2022-12-04 02:04:42 -05:00
parent d6d6743740
commit c6604ff581
43 changed files with 113 additions and 50 deletions

View file

@ -1694,6 +1694,7 @@ void DivPlatformOPL::setFlags(const DivConfig& flags) {
chipClock=COLOR_NTSC;
break;
}
CHECK_CUSTOM_CLOCK;
rate=chipClock/72;
chipRateBase=rate;
break;
@ -1715,6 +1716,7 @@ void DivPlatformOPL::setFlags(const DivConfig& flags) {
chipClock=COLOR_NTSC*4.0;
break;
}
CHECK_CUSTOM_CLOCK;
rate=chipClock/288;
chipRateBase=rate;
break;
@ -1730,6 +1732,7 @@ void DivPlatformOPL::setFlags(const DivConfig& flags) {
chipClock=COLOR_NTSC*8.0;
break;
}
CHECK_CUSTOM_CLOCK;
rate=chipClock/768;
chipRateBase=chipClock/684;
break;