From 3bcb00f9b9e31c607c7c75868cb1203e4acc7518 Mon Sep 17 00:00:00 2001 From: goyuken Date: Fri, 14 Dec 2012 14:38:39 +0000 Subject: [PATCH] vrc6 audio: fix off-by-one in frequency counts --- BizHawk.Emulation/Sound/VRC6Alt.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation/Sound/VRC6Alt.cs b/BizHawk.Emulation/Sound/VRC6Alt.cs index 3dcda7e98e..1a2e4e4124 100644 --- a/BizHawk.Emulation/Sound/VRC6Alt.cs +++ b/BizHawk.Emulation/Sound/VRC6Alt.cs @@ -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--;