![]() |
Public API Reference |
#include <listener.h>
Inheritance diagram for iSoundListener:
Public Methods | |
virtual void | SetDirection (const csVector3 &Front, const csVector3 &Top)=0 |
Set direction of listener (front and top 3d vectors). More... | |
virtual void | SetPosition (const csVector3 &pos)=0 |
Set position of listener. More... | |
virtual void | SetVelocity (const csVector3 &v)=0 |
Set velocity of listener. More... | |
virtual void | SetDistanceFactor (float factor)=0 |
Set a distance attenuator. More... | |
virtual void | SetRollOffFactor (float factor)=0 |
Set a RollOff factor. More... | |
virtual void | SetDopplerFactor (float factor)=0 |
Set the Doppler attenuator. More... | |
virtual void | SetHeadSize (float size)=0 |
Set distance between the 2 'ears' of listener. More... | |
virtual void | SetEnvironment (csSoundEnvironment env)=0 |
set type of environment where 'live' listener. More... | |
virtual void | GetDirection (csVector3 &Front, csVector3 &Top)=0 |
Get direction of listener (front and top 3d vectors). More... | |
virtual const csVector3 & | GetPosition ()=0 |
Get position of listener. More... | |
virtual const csVector3 & | GetVelocity ()=0 |
Get velocity of listener. More... | |
virtual float | GetDistanceFactor ()=0 |
Get a distance attenuator. More... | |
virtual float | GetRollOffFactor ()=0 |
Get a RollOff factor. More... | |
virtual float | GetDopplerFactor ()=0 |
Get the Doppler attenuator. More... | |
virtual float | GetHeadSize ()=0 |
Get distance between the 2 'ears' of listener. More... | |
virtual csSoundEnvironment | GetEnvironment ()=0 |
Get type of environment where 'live' listener. More... |
It can be used to setup 'yourself' (the player) for 3d sound: position, orientation, speed and environment effects.
Definition at line 64 of file listener.h.
|
Get direction of listener (front and top 3d vectors).
|
|
Get a distance attenuator.
|
|
Get the Doppler attenuator.
|
|
Get type of environment where 'live' listener.
|
|
Get distance between the 2 'ears' of listener.
|
|
Get position of listener.
|
|
Get a RollOff factor.
|
|
Get velocity of listener.
|
|
Set direction of listener (front and top 3d vectors).
|
|
Set a distance attenuator.
|
|
Set the Doppler attenuator.
|
|
set type of environment where 'live' listener.
|
|
Set distance between the 2 'ears' of listener.
|
|
Set position of listener.
|
|
Set a RollOff factor.
|
|
Set velocity of listener.
|