Amiga: better emulation, part 5
This commit is contained in:
parent
452846936f
commit
8fc6a71882
|
@ -107,9 +107,6 @@ void DivPlatformAmiga::acquire(short** buf, size_t len) {
|
||||||
amiga.audDat[0][i]=sampleMem[(amiga.dmaLoc[i])&chipMask];
|
amiga.audDat[0][i]=sampleMem[(amiga.dmaLoc[i])&chipMask];
|
||||||
amiga.audDat[1][i]=sampleMem[(amiga.dmaLoc[i]+1)&chipMask];
|
amiga.audDat[1][i]=sampleMem[(amiga.dmaLoc[i]+1)&chipMask];
|
||||||
amiga.incLoc[i]=true;
|
amiga.incLoc[i]=true;
|
||||||
} else {
|
|
||||||
amiga.audDat[0][i]=0;
|
|
||||||
amiga.audDat[1][i]=0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
amiga.audWord[i]=!amiga.audWord[i];
|
amiga.audWord[i]=!amiga.audWord[i];
|
||||||
|
|
|
@ -96,6 +96,7 @@ class DivPlatformAmiga: public DivDispatch {
|
||||||
bool incLoc[4]; // whether dmaLoc/dmaLen should be updated
|
bool incLoc[4]; // whether dmaLoc/dmaLen should be updated
|
||||||
unsigned char volPos; // position of volume PWM
|
unsigned char volPos; // position of volume PWM
|
||||||
unsigned short hPos; // horizontal position of beam
|
unsigned short hPos; // horizontal position of beam
|
||||||
|
unsigned char state[4]; // current channel state
|
||||||
|
|
||||||
Amiga() {
|
Amiga() {
|
||||||
memset(this,0,sizeof(*this));
|
memset(this,0,sizeof(*this));
|
||||||
|
|
Loading…
Reference in New Issue