C64: Flsuh audio when readin from voice 3 output ports

Fixes strongman
This commit is contained in:
alyosha-tas 2018-01-08 20:25:57 -05:00
parent f6c23270cc
commit e3c885a0ce
1 changed files with 9 additions and 2 deletions

View File

@ -111,8 +111,15 @@
break;
case 0x19: result = _potX; break;
case 0x1A: result = _potY; break;
case 0x1B: result = _voiceOutput2 >> 4; break;
case 0x1C: result = _envelopeOutput2; break;
// these two registers are reading the sound output in real time, so we need to flush the output here
case 0x1B:
Flush(false);
result = _voiceOutput2 >> 4;
break;
case 0x1C:
Flush(false);
result = _envelopeOutput2;
break;
}
return result;