Skip to content

Commit

Permalink
Merge pull request #5079 from StevenSYS/master
Browse files Browse the repository at this point in the history
Undo commit b951519
  • Loading branch information
joncampbell123 authored Jul 1, 2024
2 parents b243a00 + 740e402 commit bef02f5
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 bef02f5

Please sign in to comment.