Loading...
Searching...
No Matches
Listener.hpp
Go to the documentation of this file.
7// In no event will the authors be held liable for any damages arising from the use of this software.
The audio listener is the point in the scene from where all the sounds are heard.
Definition Listener.hpp:42
Vector3f getPosition()
Get the current position of the listener in the scene.
void setUpVector(const Vector3f &upVector)
Set the upward vector of the listener in the scene.
Vector3f getVelocity()
Get the current forward vector of the listener in the scene.
void setPosition(const Vector3f &position)
Set the position of the listener in the scene.
void setCone(const Listener::Cone &cone)
Set the cone properties of the listener in the audio scene.
void setVelocity(const Vector3f &velocity)
Set the velocity of the listener in the scene.
void setDirection(const Vector3f &direction)
Set the forward vector of the listener in the scene.
Vector3f getUpVector()
Get the current upward vector of the listener in the scene.
void setGlobalVolume(float volume)
Change the global volume of all the sounds and musics.
Listener::Cone getCone()
Get the cone properties of the listener in the audio scene.
Vector3f getDirection()
Get the current forward vector of the listener in the scene.
Structure defining the properties of a directional cone.
Definition Listener.hpp:55