diff options
author | reduz <juan@okamstudio.com> | 2015-10-08 14:50:18 -0300 |
---|---|---|
committer | reduz <juan@okamstudio.com> | 2015-10-08 14:50:18 -0300 |
commit | 3514a87b371385cdc71a2ed36deb40cd0275fff5 (patch) | |
tree | 9119e892b1f49670c4208a91f3fb039be8384bc8 /servers | |
parent | c2532bffb3f00b8ab84785c1f311d12f65b60f71 (diff) |
fixed uninitialized memory issues in audio code
Diffstat (limited to 'servers')
-rw-r--r-- | servers/audio/audio_mixer_sw.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/audio/audio_mixer_sw.cpp b/servers/audio/audio_mixer_sw.cpp index 788eec0d4a..791f31719e 100644 --- a/servers/audio/audio_mixer_sw.cpp +++ b/servers/audio/audio_mixer_sw.cpp @@ -765,6 +765,10 @@ AudioMixer::ChannelID AudioMixerSW::channel_alloc(RID p_sample) { c.mix.increment=1; //zero everything when this errors for(int i=0;i<4;i++) { + c.mix.vol[i]=0; + c.mix.reverb_vol[i]=0; + c.mix.chorus_vol[i]=0; + c.mix.old_vol[i]=0; c.mix.old_reverb_vol[i]=0; c.mix.old_chorus_vol[i]=0; |