MSM6258: prepare for rate changing

This commit is contained in:
tildearrow 2022-06-04 16:52:42 -05:00
parent 91621fe0f5
commit fc34474d6e
2 changed files with 12 additions and 2 deletions

View File

@ -46,6 +46,16 @@ void DivPlatformMSM6258::acquire(short* bufL, short* bufR, size_t start, size_t
case 0: case 0:
msm->ctrl_w(w.val); msm->ctrl_w(w.val);
break; break;
case 2:
msmPan=w.val;
break;
case 8:
msmClock=w.val;
break;
case 12:
msmDivider=4-(w.val&3);
if (msmDivider<2) msmDivider=2;
break;
} }
writes.pop(); writes.pop();
} }

View File

@ -87,9 +87,9 @@ class DivPlatformMSM6258: public DivDispatch {
unsigned char* adpcmMem; unsigned char* adpcmMem;
size_t adpcmMemLen; size_t adpcmMemLen;
unsigned char sampleBank; unsigned char sampleBank, msmPan, msmDivider;
int delay, updateOsc, sample, samplePos; int delay, updateOsc, sample, samplePos, msmClock;
bool extMode; bool extMode;