From edbae68dc5286805f58b1b2b376e9d967ff0fb17 Mon Sep 17 00:00:00 2001 From: Peter Courtemanche Date: Tue, 14 Jan 2014 14:41:54 -0800 Subject: [PATCH] Little bug fix for the mute/unmute code --HG-- branch : nfb --- KREngine/kraken/KRAudioManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KREngine/kraken/KRAudioManager.cpp b/KREngine/kraken/KRAudioManager.cpp index 8634bba..72aa05b 100644 --- a/KREngine/kraken/KRAudioManager.cpp +++ b/KREngine/kraken/KRAudioManager.cpp @@ -1983,7 +1983,7 @@ void audioLimit_Stereo(float *stereo_buffer, unsigned long framesize) // (1) get the limiting parameters for the incoming audio data float previouslimitvol = limit_value; float peak; - unsigned long attack_sample_position; + unsigned long attack_sample_position = framesize; // (1a) check for a mute or unmute state then get the next limit volume float nextlimitvol = 0.0;