Skip to content

Commit 3eebd56

Browse files
authored
LowPassFilter: correct default values for read/write fields
1 parent c3c6ba4 commit 3eebd56

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,16 @@ public void setVolume(float volume) {
136136
public void write(JmeExporter ex) throws IOException {
137137
super.write(ex);
138138
OutputCapsule oc = ex.getCapsule(this);
139-
oc.write(volume, "volume", 0);
140-
oc.write(highFreqVolume, "hf_volume", 0);
139+
oc.write(volume, "volume", 1f);
140+
oc.write(highFreqVolume, "hf_volume", 1f);
141141
}
142142

143143
@Override
144144
public void read(JmeImporter im) throws IOException {
145145
super.read(im);
146146
InputCapsule ic = im.getCapsule(this);
147-
volume = ic.readFloat("volume", 0);
148-
highFreqVolume = ic.readFloat("hf_volume", 0);
147+
volume = ic.readFloat("volume", 1f);
148+
highFreqVolume = ic.readFloat("hf_volume", 1f);
149149
}
150150

151151
/**

0 commit comments

Comments
 (0)