vrc6 audio: fix off-by-one in frequency counts
This commit is contained in:
parent
d34368e98d
commit
3bcb00f9b9
|
@ -232,7 +232,7 @@ namespace BizHawk.Emulation.Sound
|
|||
if (!E)
|
||||
return;
|
||||
count--;
|
||||
if (count <= 0)
|
||||
if (count < 0)
|
||||
{
|
||||
count = F >> RSHIFT;
|
||||
acount++;
|
||||
|
@ -348,7 +348,7 @@ namespace BizHawk.Emulation.Sound
|
|||
if (!E)
|
||||
return;
|
||||
count--;
|
||||
if (count <= 0)
|
||||
if (count < 0)
|
||||
{
|
||||
count = F >> RSHIFT;
|
||||
duty--;
|
||||
|
|
Loading…
Reference in New Issue