File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
jme3-core/src/main/java/com/jme3/audio Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,21 @@ public class LowPassFilter extends Filter {
4949 /**
5050 * The overall volume scaling of the filtered sound
5151 */
52- protected float volume ;
52+ protected float volume = 1.0f ;
5353 /**
5454 * The volume scaling of the high frequencies allowed to pass through. Valid values range
5555 * from 0.0 to 1.0, where 0.0 completely eliminates high frequencies and 1.0 lets them pass
5656 * through unchanged.
5757 */
58- protected float highFreqVolume ;
58+ protected float highFreqVolume = 1.0f ;
59+
60+ /**
61+ * Constructs a low-pass filter with default settings.
62+ * Required for jME deserialization.
63+ */
64+ public LowPassFilter () {
65+ super ();
66+ }
5967
6068 /**
6169 * Constructs a low-pass filter.
You can’t perform that action at this time.
0 commit comments