mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-20 12:55:55 +08:00
very minor envelope counter fix
also remove unneccessary bit counting (thanks @gtaylormb)
This commit is contained in:
@@ -1208,9 +1208,9 @@ inline void OPL3_Generate4Ch(opl3_chip *chip, int16_t *buf4)
|
|||||||
chip->timer++;
|
chip->timer++;
|
||||||
|
|
||||||
chip->eg_add = 0;
|
chip->eg_add = 0;
|
||||||
if (chip->eg_timer)
|
if (chip->eg_state)
|
||||||
{
|
{
|
||||||
while (shift < 36 && ((chip->eg_timer >> shift) & 1) == 0)
|
while (shift < 13 && ((chip->eg_timer >> shift) & 1) == 0)
|
||||||
{
|
{
|
||||||
shift++;
|
shift++;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user