Package com.jme3.audio
Class HighPassFilter
java.lang.Object
com.jme3.util.NativeObject
com.jme3.audio.Filter
com.jme3.audio.HighPassFilter
- All Implemented Interfaces:
Savable,JmeCloneable,Cloneable
Represents an OpenAL EFX High-Pass Filter.
-
Field Summary
FieldsFields inherited from class com.jme3.util.NativeObject
handleRef, id, INVALID_ID, objectManager, OBJTYPE_AUDIOBUFFER, OBJTYPE_AUDIOSTREAM, OBJTYPE_BO, OBJTYPE_FILTER, OBJTYPE_FRAMEBUFFER, OBJTYPE_SHADER, OBJTYPE_SHADERSOURCE, OBJTYPE_TEXTURE, OBJTYPE_VERTEXBUFFER, updateNeeded -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a high-pass filter with default settings.HighPassFilter(float volume, float lowFreqVolume) protectedHighPassFilter(int id) -
Method Summary
Modifier and TypeMethodDescriptionCreates a shallow clone of this GL Object.floatlongRetrieves a unique identifier for this filter.floatvoidread(JmeImporter im) voidsetLowFreqVolume(float lowFreqVolume) Sets the gain at low frequencies for the High-Pass filter.voidsetVolume(float volume) Sets the gain of the High-Pass filter.voidwrite(JmeExporter ex) Methods inherited from class com.jme3.audio.Filter
cloneFields, deleteObject, jmeClone, resetObjectMethods inherited from class com.jme3.util.NativeObject
clearUpdateNeeded, clone, deleteNativeBuffers, dispose, getId, getWeakRef, isUpdateNeeded, setId, setUpdateNeeded, toString
-
Field Details
-
volume
protected float volume -
lowFreqVolume
protected float lowFreqVolume
-
-
Constructor Details
-
HighPassFilter
public HighPassFilter()Constructs a high-pass filter with default settings. Required for jME deserialization -
HighPassFilter
protected HighPassFilter(int id) -
HighPassFilter
public HighPassFilter(float volume, float lowFreqVolume)
-
-
Method Details
-
getVolume
public float getVolume() -
setVolume
public void setVolume(float volume) Sets the gain of the High-Pass filter.- Parameters:
volume- The gain value (0.0 to 1.0).
-
getLowFreqVolume
public float getLowFreqVolume() -
setLowFreqVolume
public void setLowFreqVolume(float lowFreqVolume) Sets the gain at low frequencies for the High-Pass filter.- Parameters:
lowFreqVolume- The low-frequency gain value (0.0 to 1.0).
-
createDestructableClone
Description copied from class:NativeObjectCreates a shallow clone of this GL Object. The deleteObject method should be functional for this object.- Specified by:
createDestructableClonein classFilter- Returns:
- a new instance
-
getUniqueId
public long getUniqueId()Retrieves a unique identifier for this filter. Used internally for native object management.- Specified by:
getUniqueIdin classNativeObject- Returns:
- a unique long identifier.
-
write
- Specified by:
writein interfaceSavable- Overrides:
writein classFilter- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Overrides:
readin classFilter- Throws:
IOException
-