[vlc-commits] Spatializer: init variables correctly

Jean-Baptiste Kempf git at videolan.org
Wed Mar 28 01:35:15 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Mar 28 00:34:59 2012 +0200| [600d2090fb165045c6fb2fc42b16f64a3a400896] | committer: Jean-Baptiste Kempf

Spatializer: init variables correctly

Close #6514

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=600d2090fb165045c6fb2fc42b16f64a3a400896
---

 modules/audio_filter/spatializer/revmodel.cpp |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/audio_filter/spatializer/revmodel.cpp b/modules/audio_filter/spatializer/revmodel.cpp
index d6dd9cf..0437e58 100644
--- a/modules/audio_filter/spatializer/revmodel.cpp
+++ b/modules/audio_filter/spatializer/revmodel.cpp
@@ -12,9 +12,11 @@
 // This code is public domain
 
 #include "revmodel.hpp"
+#include "tuning.h"
 #include <stdlib.h>
 
-revmodel::revmodel()
+revmodel::revmodel() : wet(initialwet), width(1.), mode(0.), roomsize(initialroom),
+                       damp(initialdamp), dry(initialdry)
 {
     // Tie the components to their buffers
     combL[0].setbuffer(bufcombL1,combtuningL1);



More information about the vlc-commits mailing list