File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
jme3-core/src/main/java/com/jme3/audio Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 /**
You can’t perform that action at this time.
0 commit comments