Hook up audio.

This commit is contained in:
Christian Speckner 2016-11-15 21:24:20 +01:00
parent 6d76d65d82
commit 2d76b7fb98
1 changed files with 12 additions and 1 deletions

View File

@ -112,7 +112,9 @@ bool TIA::poke(uInt16 address, uInt8 value)
{
updateEmulation();
switch (address & 0x3F) {
address &= 0x3F;
switch (address) {
case WSYNC:
mySystem->incrementCycles((227 - myHctr) / 3);
break;
@ -124,6 +126,15 @@ bool TIA::poke(uInt16 address, uInt8 value)
case VBLANK:
myFrameManager.setVblank(value & 0x02);
break;
case AUDV0:
case AUDV1:
case AUDF0:
case AUDF1:
case AUDC0:
case AUDC1:
mySound.set(address, value, mySystem->cycles());
break;
}
return true;