SFML-0.2.0.0: SFML bindings

Safe HaskellSafe-Inferred
LanguageHaskell98

SFML.Audio.Listener

Synopsis

Documentation

setGlobalVolume Source

Arguments

:: Float

New global volume, in the range [0, 100]

-> IO () 

Change the global volume of all the sounds and musics.

The volume is a number between 0 and 100; it is combined with the individual volume of each sound or music.

The default value for the volume is 100 (maximum).

getGlobalVolume Source

Arguments

:: IO Float

Current global volume, in the range [0, 100]

Get the current value of the global volume.

setListenerPosition :: Vec3f -> IO () Source

Set the position of the listener in the scene.

The default listener's position is (0, 0, 0).

getListenerPosition :: IO Vec3f Source

Get the current position of the listener in the scene.

setListenerDirection :: Vec3f -> IO () Source

Set the orientation of the listener in the scene.

The orientation defines the 3D axes of the listener (left, up, front) in the scene. The orientation vector doesn't have to be normalized.

The default listener's orientation is (0, 0, -1).

getListenerDirection :: IO Vec3f Source

Get the current orientation of the listener in the scene.