LFO LFO LFO LFO LFO LFO LFO LFO LFO LFO LFO LFO

This commit is contained in:
tildearrow 2022-02-19 17:35:52 -05:00
parent 859ac5e373
commit 67ec998196
2 changed files with 7 additions and 1 deletions

View File

@ -519,7 +519,7 @@ int DivPlatformPCE::init(DivEngine* p, int channels, int sugRate, unsigned int f
isMuted[i]=false;
}
setFlags(flags);
pce=new PCE_PSG(tempL,tempR,PCE_PSG::REVISION_HUC6280);
pce=new PCE_PSG(tempL,tempR,PCE_PSG::REVISION_HUC6280A);
reset();
return 6;
}

View File

@ -157,6 +157,12 @@ void PCE_PSG::RecalcUOFunc(int chnum)
//printf("UO Update: %d, %02x\n", chnum, ch->control);
// what is this?
if (lfoctrl&3 && chnum==1) {
ch->UpdateOutput = &PCE_PSG::UpdateOutput_Off;
return;
}
if((revision != REVISION_HUC6280 && !(ch->control & 0xC0)) || (revision == REVISION_HUC6280 && !(ch->control & 0x80)))
ch->UpdateOutput = &PCE_PSG::UpdateOutput_Off;
else if(ch->noisectrl & ch->control & 0x80)