Skip to content

Commit

Permalink
aica: skip remaining step functions when channel is disabled
Browse files Browse the repository at this point in the history
CA is reset to 0 when channel is disabled due to AEG and this value must
not be changed.
Issue #472 and #1180
  • Loading branch information
flyinghead committed Sep 7, 2024
1 parent a81a02f commit 5393235
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/hw/aica/sgc_if.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,12 @@ struct ChannelEx
clip_verify((s64)sample*oDsp>=0);

StepAEG(this);
StepFEG(this);
StepStream(this);
lfo.Step(this);
if (enabled)
{
StepFEG(this);
StepStream(this);
lfo.Step(this);
}
return true;
}
}
Expand Down

0 comments on commit 5393235

Please sign in to comment.