Class SoundSystem.SoundGroup
java.lang.Object
com.blackrook.gloop.openal.util.system.SoundSystem.SoundGroup
- All Implemented Interfaces:
SoundGroupType
- Enclosing class:
SoundSystem
A playback group type.
- Author:
- Matthew Tropiano
-
Constructor Summary
ConstructorsConstructorDescriptionSoundGroup(SoundGroupType parent, boolean occludable, boolean twoDimensional, boolean zeroPosition, int maxVoices) -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatfloatfloatfloatfloatfloatgetGain()floatfloatintfloatgetPitch()booleanbooleanbooleanvoidsetEffectGain(float gainEffect) voidsetGain(float gain) voidsetHighPassGain(float gainHF) voidsetLowPassGain(float gainLF) voidsetPitch(float pitch)
-
Constructor Details
-
SoundGroup
public SoundGroup(SoundGroupType parent, boolean occludable, boolean twoDimensional, boolean zeroPosition, int maxVoices)
-
-
Method Details
-
getCalculatedGain
public float getCalculatedGain()- Specified by:
getCalculatedGainin interfaceSoundGroupType- Returns:
- the combined multiplicative gain for this group.
-
getCalculatedPitch
public float getCalculatedPitch()- Specified by:
getCalculatedPitchin interfaceSoundGroupType- Returns:
- the combined multiplicative pitch for this group.
-
getCalculatedLowPassGain
public float getCalculatedLowPassGain()- Specified by:
getCalculatedLowPassGainin interfaceSoundGroupType- Returns:
- the combined multiplicative dry low pass gain for this group.
-
getCalculatedHighPassGain
public float getCalculatedHighPassGain()- Specified by:
getCalculatedHighPassGainin interfaceSoundGroupType- Returns:
- the combined multiplicative dry high pass gain for this group.
-
getCalculatedEffectGain
public float getCalculatedEffectGain()- Specified by:
getCalculatedEffectGainin interfaceSoundGroupType- Returns:
- the combined multiplicative wet effect gain for this group.
-
getGain
public float getGain()- Specified by:
getGainin interfaceSoundGroupType- Returns:
- the gain for this group.
-
setGain
public void setGain(float gain) -
getPitch
public float getPitch()- Specified by:
getPitchin interfaceSoundGroupType- Returns:
- the pitch for this group.
-
setPitch
public void setPitch(float pitch) -
getLowPassGain
public float getLowPassGain()- Specified by:
getLowPassGainin interfaceSoundGroupType- Returns:
- the dry low pass gain for this group.
-
setLowPassGain
public void setLowPassGain(float gainLF) -
getHighPassGain
public float getHighPassGain()- Specified by:
getHighPassGainin interfaceSoundGroupType- Returns:
- the dry high pass gain for this group.
-
setHighPassGain
public void setHighPassGain(float gainHF) -
getEffectGain
public float getEffectGain()- Specified by:
getEffectGainin interfaceSoundGroupType- Returns:
- the wet effect gain for this group.
-
setEffectGain
public void setEffectGain(float gainEffect) -
isOccludable
public boolean isOccludable()- Specified by:
isOccludablein interfaceSoundGroupType- Returns:
- if this group is occludable.
-
isTwoDimensional
public boolean isTwoDimensional()- Specified by:
isTwoDimensionalin interfaceSoundGroupType- Returns:
- if the sounds in this group are supposed to be positioned on a two-dimensional plane in front of the center.
-
isZeroPosition
public boolean isZeroPosition()- Specified by:
isZeroPositionin interfaceSoundGroupType- Returns:
- if the sounds in this group are supposed to be played from the observer always.
-
getMaximumVoices
public int getMaximumVoices()- Specified by:
getMaximumVoicesin interfaceSoundGroupType- Returns:
- the total amount of voices that this group can use at once.
-