We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3c6ba4 commit 3eebd56Copy full SHA for 3eebd56
1 file changed
jme3-core/src/main/java/com/jme3/audio/LowPassFilter.java
@@ -136,16 +136,16 @@ public void setVolume(float volume) {
136
public void write(JmeExporter ex) throws IOException {
137
super.write(ex);
138
OutputCapsule oc = ex.getCapsule(this);
139
- oc.write(volume, "volume", 0);
140
- oc.write(highFreqVolume, "hf_volume", 0);
+ oc.write(volume, "volume", 1f);
+ oc.write(highFreqVolume, "hf_volume", 1f);
141
}
142
143
@Override
144
public void read(JmeImporter im) throws IOException {
145
super.read(im);
146
InputCapsule ic = im.getCapsule(this);
147
- volume = ic.readFloat("volume", 0);
148
- highFreqVolume = ic.readFloat("hf_volume", 0);
+ volume = ic.readFloat("volume", 1f);
+ highFreqVolume = ic.readFloat("hf_volume", 1f);
149
150
151
/**
0 commit comments