From 49d4e134fb3b8e297d47aacccbc9085ca39b27e1 Mon Sep 17 00:00:00 2001 From: avolkov Date: Wed, 7 Oct 2009 13:19:09 +0000 Subject: [PATCH] Minor fix: frame count should not be hardcoded here git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3190 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/sound/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/sound/stream.c b/sc2/src/sc2code/libs/sound/stream.c index 0a3d0feb0..acdc9282f 100644 --- a/sc2/src/sc2code/libs/sound/stream.c +++ b/sc2/src/sc2code/libs/sound/stream.c @@ -601,7 +601,7 @@ GraphForegroundStream (uint8 *data, sint32 width, sint32 height) // Record the maximum amplitude (sort of) frame_sum += max_a; ++frames; - if (frames == 8) + if (frames == AGC_FRAME_COUNT) { // Got a full page frame_sum /= AGC_FRAME_COUNT; // Record the page