Class OALEffectSlot
java.lang.Object
com.blackrook.gloop.openal.OALObject
com.blackrook.gloop.openal.OALEffectSlot
Auxiliary Effect Slot for enforcing effect mixing rules.
- Author:
- Matthew Tropiano
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanDoes this auto update itself if the Effect changes?protected OALEffectEffect bound to this slot.protected floatEffect slot gain. -
Method Summary
Modifier and TypeMethodDescriptionprotected intallocate()Allocates a new type of this object in OpenAL.protected final voidfree()Destroys this object (deallocates it on OpenAL).floatgetGain()final booleanDoes this auto update itself if the Effect changes?Removes the effect in this slot.final voidsetAutoUpdating(boolean autoUpdate) Sets if this auto update itself if the Effect changes.voidSets an Effect in this slot.voidsetGain(float gain) Sets effect slot gain.Methods inherited from class OALObject
clearError, destroy, equals, equals, errorCheck, getName, hashCode, requestContext, toString
-
Field Details
-
effect
Effect bound to this slot. -
slotGain
protected float slotGainEffect slot gain. -
autoUpdating
protected boolean autoUpdatingDoes this auto update itself if the Effect changes?
-
-
Method Details
-
allocate
-
free
-
setEffect
Sets an Effect in this slot. Can be null to remove the Effect.- Parameters:
effect- the effect to add.
-
getEffect
- Returns:
- the reference of the Effect bound to this slot.
-
removeEffect
-
getGain
public float getGain()- Returns:
- the effect slot gain.
-
setGain
public void setGain(float gain) Sets effect slot gain.- Parameters:
gain- the gain to use.
-
isAutoUpdating
public final boolean isAutoUpdating()Does this auto update itself if the Effect changes?- Returns:
- true if so, false if not.
-
setAutoUpdating
public final void setAutoUpdating(boolean autoUpdate) Sets if this auto update itself if the Effect changes.- Parameters:
autoUpdate- true if so, false if not.
-