YM2612: - C S M -

CSM only available with Nuked core
may not work on VGM export if you compress VGM (removes timer A writes)
This commit is contained in:
tildearrow 2022-06-03 16:13:57 -05:00
parent 59ba156cdf
commit b4a7f0f5b7
3 changed files with 35 additions and 24 deletions

View file

@ -512,28 +512,6 @@ void DivPlatformGenesis::tick(bool sysTick) {
}
}
if (extMode && softPCM) {
if (chan[7].freqChanged) {
chan[7].freq=parent->calcFreq(chan[7].baseFreq,chan[7].pitch,true,0,chan[7].pitch2,chipClock,CHIP_DIVIDER);
int wf=0x400-chan[7].freq;
printf("freq: %d\n",wf);
immWrite(0x24,wf>>2);
immWrite(0x25,wf&3);
chan[7].freqChanged=false;
}
if (chan[7].keyOn) {
printf("CSM key on\n");
immWrite(0x27,0x81);
chan[7].keyOn=false;
}
if (chan[7].keyOff) {
printf("CSM key off\n");
immWrite(0x27,0x40);
chan[7].keyOff=false;
}
}
for (int i=0; i<7; i++) {
if (i==2 && extMode) continue;
if (chan[i].freqChanged) {