Amiga: better emulation, part 5

This commit is contained in:
tildearrow 2023-03-10 18:51:00 -05:00
parent 452846936f
commit 8fc6a71882
2 changed files with 1 additions and 3 deletions

View File

@ -107,9 +107,6 @@ void DivPlatformAmiga::acquire(short** buf, size_t len) {
amiga.audDat[0][i]=sampleMem[(amiga.dmaLoc[i])&chipMask];
amiga.audDat[1][i]=sampleMem[(amiga.dmaLoc[i]+1)&chipMask];
amiga.incLoc[i]=true;
} else {
amiga.audDat[0][i]=0;
amiga.audDat[1][i]=0;
}
amiga.audWord[i]=!amiga.audWord[i];

View File

@ -96,6 +96,7 @@ class DivPlatformAmiga: public DivDispatch {
bool incLoc[4]; // whether dmaLoc/dmaLen should be updated
unsigned char volPos; // position of volume PWM
unsigned short hPos; // horizontal position of beam
unsigned char state[4]; // current channel state
Amiga() {
memset(this,0,sizeof(*this));