From 20ed63ede206484cc667b9b90af4f354836ff8cf Mon Sep 17 00:00:00 2001 From: EvanR Date: Sat, 6 Mar 2010 15:16:25 -0600 Subject: [PATCH] Fixed another bug in output level. --- audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio.c b/audio.c index 87c014e..85b5abc 100644 --- a/audio.c +++ b/audio.c @@ -59,7 +59,7 @@ void audio_callback(void *userdata, Uint8 *stream, int bytes){ */ accum += out[j-1] * out[j-1]; - if(abs(out[j]) > max){ + if(abs(out[j-1]) > max){ max = abs(out[j-1]); } } -- 2.11.4.GIT