Explorar el Código

BandPassFilter: typo

Wyatt Gillette hace 3 meses
padre
commit
cb7ad5a3bb
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. 6 6
      jme3-core/src/main/java/com/jme3/audio/BandPassFilter.java

+ 6 - 6
jme3-core/src/main/java/com/jme3/audio/BandPassFilter.java

@@ -136,17 +136,17 @@ public class BandPassFilter extends Filter {
     public void write(JmeExporter ex) throws IOException {
         super.write(ex);
         OutputCapsule oc = ex.getCapsule(this);
-        oc.write(this.volume, "volume", 10.f);
-        oc.write(this.lowFreqVolume, "lf_volume", 1.0f);
-        oc.write(this.highFreqVolume, "hf_volume", 1.0f);
+        oc.write(this.volume, "volume", 1f);
+        oc.write(this.lowFreqVolume, "lf_volume", 1f);
+        oc.write(this.highFreqVolume, "hf_volume", 1f);
     }
 
     @Override
     public void read(JmeImporter im) throws IOException {
         super.read(im);
         InputCapsule ic = im.getCapsule(this);
-        this.volume = ic.readFloat("volume", 1.0f);
-        this.lowFreqVolume = ic.readFloat("lf_volume", 1.0f);
-        this.highFreqVolume = ic.readFloat("hf_volume", 1.0f);
+        this.volume = ic.readFloat("volume", 1f);
+        this.lowFreqVolume = ic.readFloat("lf_volume", 1f);
+        this.highFreqVolume = ic.readFloat("hf_volume", 1f);
     }
 }