summaryrefslogtreecommitdiff
path: root/servers/audio/audio_mixer_sw.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-10-13 01:19:32 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-10-13 01:19:32 -0300
commitb3cda43a0fb49e1cb9c8414077a23fa4b61ede38 (patch)
tree1fee133b2fbc6f2bade96cc9914a449cbb9dbe1e /servers/audio/audio_mixer_sw.cpp
parent52e756752e1db9e4cf7c5bb7e92d44995ad674c4 (diff)
parentaad2bbdb6fb7c8217d7e75480b38e45f00cb3abd (diff)
Merge branch 'master' of https://github.com/okamstudio/godot
Conflicts: platform/windows/detect.py
Diffstat (limited to 'servers/audio/audio_mixer_sw.cpp')
-rw-r--r--servers/audio/audio_mixer_sw.cpp4
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;