Package rosequartz.afx
Class AudioListener
java.lang.Object
rosequartz.afx.AudioListener
- All Implemented Interfaces:
CameraConfiguration.CameraConfigurationHolder
public final class AudioListener
extends Object
implements CameraConfiguration.CameraConfigurationHolder
Represents the audio listener.
This is (in most cases) the player.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures the audio listener based on the current configuration.static AudioListenerget()Gets the audio listener.Gets the used camera configuration.voidsetConfiguration(CameraConfiguration configuration)Sets the used camera configuration.setVelocity(float x, float y, float z)Sets the velocity of the AudioListener.setVelocity(Vec3 xyz)Sets the velocity of the AudioListener.setVolume(float volume)Sets the volume of what the AudioListener receives.toString()
-
Constructor Details
-
AudioListener
-
-
Method Details
-
get
Gets the audio listener.- Returns:
- AudioListener-object
- See Also:
AudioListener
-
setVelocity
Sets the velocity of the AudioListener. Note that velocity may not be implemented by every build target.- Parameters:
x- new velocity on the x-axisy- new velocity on the y-axisz- new velocity on the z-axis- Returns:
- this
-
setVelocity
Sets the velocity of the AudioListener.- Parameters:
xyz- new velocity- Returns:
- this
-
setVolume
Sets the volume of what the AudioListener receives.- Parameters:
volume- the volume- Returns:
- this
-
_configure
public void _configure()Configures the audio listener based on the current configuration. This method is called automatically called by the AudioListenerConfigurationPipeline. -
setConfiguration
Description copied from interface:CameraConfiguration.CameraConfigurationHolderSets the used camera configuration.- Specified by:
setConfigurationin interfaceCameraConfiguration.CameraConfigurationHolder- Parameters:
configuration- camera configuration
-
getConfiguration
Description copied from interface:CameraConfiguration.CameraConfigurationHolderGets the used camera configuration.- Specified by:
getConfigurationin interfaceCameraConfiguration.CameraConfigurationHolder- Returns:
- camera configuration
-
toString
-