|
From: Tapio V. <aa...@us...> - 2010-09-15 05:34:18
|
Module: performous
Branch: master
Commit: f5e1ae1dcc7c60a68f13ca560e587a425c212a62
Author: Tapio Vierros <tap...@gm...>
Date: Wed Sep 15 08:33:17 2010 +0300
Fix Analyzer::input again.
---
game/pitch.hh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/pitch.hh b/game/pitch.hh
index 52b14ae..d7ca49e 100644
--- a/game/pitch.hh
+++ b/game/pitch.hh
@@ -60,7 +60,7 @@ class Analyzer {
if (w == r) overflow = true;
}
m_bufWrite = w;
- if (overflow) m_bufRead = w; // Reset read pointer on overflow
+ if (overflow) m_bufRead = (w + 1) % BUF_N; // Reset read pointer on overflow
}
/** Call this to process all data input so far. **/
void process();
|