Interface SoundSystem.OcclusionFunction

Enclosing class:
SoundSystem

public static interface SoundSystem.OcclusionFunction
The function type to use for figuring out an occlusion scalar.
Author:
Matthew Tropiano
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    getOcclusionScalar(float soundX, float soundY, float soundZ, float observerX, float observerY, float observerZ)
    Gets the occlusion scalar for a set of coordinates.
  • Method Details

    • getOcclusionScalar

      float getOcclusionScalar(float soundX, float soundY, float soundZ, float observerX, float observerY, float observerZ)
      Gets the occlusion scalar for a set of coordinates.
      Parameters:
      soundX - the sound source, X-coordinate.
      soundY - the sound source, Y-coordinate.
      soundZ - the sound source, Z-coordinate.
      observerX - the observer source, X-coordinate.
      observerY - the observer source, Y-coordinate.
      observerZ - the observer source, Z-coordinate.
      Returns:
      the resultant scalar.