SFML.Net
Listener Class |
The audio listener is the point in the scene
from where all the sounds are heard

SystemObject SFML.AudioListener
Namespace: SFML.Audio
Assembly: sfmlnet-audio-2 (in sfmlnet-audio-2.dll) Version: 2.2.0.0 (2.2.0)

The Listener type exposes the following members.


Name | Description | |
---|---|---|
![]() | Equals |
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.) |
![]() | Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() | ToString |
Returns a String that represents the current Object.
(Inherited from Object.) |

Name | Description | |
---|---|---|
![]() ![]() | Direction |
The direction (also called "at vector") is the vector
pointing forward from the listener's perspective. Together
with the up vector, it defines the 3D orientation of the
listener in the scene. The direction vector doesn't
have to be normalized.
The default listener's direction is (0, 0, -1).
|
![]() ![]() | GlobalVolume |
The volume is a number between 0 and 100; it is combined with
the individual volume of each sound / music.
The default value for the volume is 100 (maximum).
|
![]() ![]() | Position |
3D position of the listener (default is (0, 0, 0))
|
![]() ![]() | UpVector |
The up vector is the vector that points upward from the
listener's perspective. Together with the direction, it
defines the 3D orientation of the listener in the scene.
The up vector doesn't have to be normalized.
The default listener's up vector is (0, 1, 0). It is usually
not necessary to change it, especially in 2D scenarios.
|
