Skip to content

Commit

Permalink
Undo commit: "very minor envelope counter fix"
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenSYS authored Jul 1, 2024
1 parent b243a00 commit 740e402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hardware/nukedopl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1208,9 +1208,9 @@ inline void OPL3_Generate4Ch(opl3_chip *chip, int16_t *buf4)
chip->timer++;

chip->eg_add = 0;
if (chip->eg_state)
if (chip->eg_timer)
{
while (shift < 13 && ((chip->eg_timer >> shift) & 1) == 0)
while (shift < 36 && ((chip->eg_timer >> shift) & 1) == 0)
{
shift++;
}
Expand Down

0 comments on commit 740e402

Please sign in to comment.