Class SpatialModifier

java.lang.Object
net.raphimc.audiomixer.soundmodifier.impl.SpatialModifier
All Implemented Interfaces:
SoundModifier

public class SpatialModifier extends Object implements SoundModifier
  • Constructor Details

    • SpatialModifier

      public SpatialModifier(float maxDistance)
  • Method Details

    • modify

      public void modify(AudioFormat audioFormat, int[] renderedSamples)
      Specified by:
      modify in interface SoundModifier
    • getMaxDistance

      public float getMaxDistance()
    • setMaxDistance

      public SpatialModifier setMaxDistance(float maxDistance)
    • getSoundX

      public float getSoundX()
    • setSoundX

      public SpatialModifier setSoundX(float soundX)
    • getSoundY

      public float getSoundY()
    • setSoundY

      public SpatialModifier setSoundY(float soundY)
    • getSoundZ

      public float getSoundZ()
    • setSoundZ

      public SpatialModifier setSoundZ(float soundZ)
    • getListenerX

      public float getListenerX()
    • setListenerX

      public SpatialModifier setListenerX(float listenerX)
    • getListenerY

      public float getListenerY()
    • setListenerY

      public SpatialModifier setListenerY(float listenerY)
    • getListenerZ

      public float getListenerZ()
    • setListenerZ

      public SpatialModifier setListenerZ(float listenerZ)
    • getListenerYaw

      public float getListenerYaw()
    • setListenerYaw

      public SpatialModifier setListenerYaw(float listenerYaw)
    • getListenerYawDegrees

      public float getListenerYawDegrees()
    • setListenerYawDegrees

      public SpatialModifier setListenerYawDegrees(int listenerYaw)