vrc6 audio: fix off-by-one in frequency counts

This commit is contained in:
goyuken 2012-12-14 14:38:39 +00:00
parent d34368e98d
commit 3bcb00f9b9
1 changed files with 2 additions and 2 deletions

View File

@ -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--;