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)
|
if (!E)
|
||||||
return;
|
return;
|
||||||
count--;
|
count--;
|
||||||
if (count <= 0)
|
if (count < 0)
|
||||||
{
|
{
|
||||||
count = F >> RSHIFT;
|
count = F >> RSHIFT;
|
||||||
acount++;
|
acount++;
|
||||||
|
@ -348,7 +348,7 @@ namespace BizHawk.Emulation.Sound
|
||||||
if (!E)
|
if (!E)
|
||||||
return;
|
return;
|
||||||
count--;
|
count--;
|
||||||
if (count <= 0)
|
if (count < 0)
|
||||||
{
|
{
|
||||||
count = F >> RSHIFT;
|
count = F >> RSHIFT;
|
||||||
duty--;
|
duty--;
|
||||||
|
|
Loading…
Reference in New Issue