add ability to select custom clock rates
This commit is contained in:
parent
d6d6743740
commit
c6604ff581
43 changed files with 113 additions and 50 deletions
|
|
@ -482,13 +482,14 @@ bool DivPlatformVRC6::keyOffAffectsArp(int ch) {
|
|||
void DivPlatformVRC6::setFlags(const DivConfig& flags) {
|
||||
int clockSel=flags.getInt("clockSel",0);
|
||||
if (clockSel==2) { // Dendy
|
||||
rate=COLOR_PAL*2.0/5.0;
|
||||
chipClock=COLOR_PAL*2.0/5.0;
|
||||
} else if (clockSel==1) { // PAL
|
||||
rate=COLOR_PAL*3.0/8.0;
|
||||
chipClock=COLOR_PAL*3.0/8.0;
|
||||
} else { // NTSC
|
||||
rate=COLOR_NTSC/2.0;
|
||||
chipClock=COLOR_NTSC/2.0;
|
||||
}
|
||||
chipClock=rate;
|
||||
CHECK_CUSTOM_CLOCK;
|
||||
rate=chipClock;
|
||||
for (int i=0; i<3; i++) {
|
||||
oscBuf[i]->rate=rate/32;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue