Merge branch 'master' into minmod

This commit is contained in:
tildearrow 2024-03-17 18:07:34 -05:00
commit 7392915291
10 changed files with 9 additions and 8 deletions

View file

@ -879,10 +879,10 @@ void DivPlatformAY8910::setFlags(const DivConfig& flags) {
if (ay!=NULL) delete ay;
switch (flags.getInt("chipType",0)) {
case 1:
clockSel=flags.getBool("halfClock",false);
ay=new ym2149_device(rate,clockSel);
sunsoft=false;
intellivision=false;
clockSel=flags.getBool("halfClock",false);
break;
case 2:
ay=new sunsoft_5b_sound_device(rate);

View file

@ -239,11 +239,9 @@ void DivPlatformNDS::tick(bool sysTick) {
if (chan[i].freq<0) chan[i].freq=0;
if (chan[i].freq>65535) chan[i].freq=65535;
ctrl=(chan[i].active?0xe8:0)|(chan[i].duty&7);
rWrite8(0x03+i*16,ctrl&~0x80); // force keyoff first
}
if (!chan[i].std.vol.had) {
chan[i].outVol=chan[i].vol;
writeOutVol(i);
if (chan[i].keyOff || chan[i].keyOn) {
rWrite8(0x03+i*16,ctrl&~0x80); // force keyoff first
}
}
chan[i].keyOn=false;
if (chan[i].keyOff) {
@ -422,6 +420,7 @@ void DivPlatformNDS::forceIns() {
chan[i].sample=-1;
rWrite8(0x02+i*16,chan[i].panning);
writeOutVol(i);
}
}