Skip to content

Commit 4ae2e55

Browse files
authored
LowPassFilter: add no-args constructor
1 parent b920f8c commit 4ae2e55

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

jme3-core/src/main/java/com/jme3/audio/LowPassFilter.java

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)