OPN: implement phase reset macro on ExtCh
This commit is contained in:
parent
82d5139197
commit
3d7079226f
5 changed files with 50 additions and 10 deletions
|
|
@ -423,6 +423,16 @@ void DivPlatformYM2608Ext::tick(bool sysTick) {
|
|||
int hardResetElapsed=0;
|
||||
bool mustHardReset=false;
|
||||
|
||||
if (extMode && !noExtMacros) for (int i=0; i<4; i++) {
|
||||
opChan[i].std.next();
|
||||
|
||||
if (opChan[i].std.phaseReset.had) {
|
||||
if (opChan[i].std.phaseReset.val==1 && opChan[i].active) {
|
||||
opChan[i].keyOn=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (extMode) {
|
||||
bool writeSomething=false;
|
||||
unsigned char writeMask=2;
|
||||
|
|
@ -449,8 +459,6 @@ void DivPlatformYM2608Ext::tick(bool sysTick) {
|
|||
}
|
||||
|
||||
if (extMode && !noExtMacros) for (int i=0; i<4; i++) {
|
||||
opChan[i].std.next();
|
||||
|
||||
if (opChan[i].std.vol.had) {
|
||||
opChan[i].outVol=VOL_SCALE_LOG_BROKEN(opChan[i].vol,MIN(127,opChan[i].std.vol.val),127);
|
||||
unsigned short baseAddr=chanOffs[2]|opOffs[orderedOps[i]];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue