The IListener audio object interface. More...
#include "murl_audio_i_listener.h"
Inherited by Murl::Audio::Al11::Listener, and Murl::Audio::Dummy::Listener.
Public Member Functions | |
virtual IObject * | GetObjectInterface ()=0 |
Get the mutable Audio::IObject interface. More... | |
virtual const IObject * | GetObjectInterface () const =0 |
Get the constant Audio::IObject interface. More... | |
virtual Bool | Enable ()=0 |
Enable the listener. More... | |
virtual Bool | Disable ()=0 |
Disable the listener. More... | |
virtual Bool | SetVolume (Real volume)=0 |
Set the listener's overall volume (gain). More... | |
virtual Real | GetVolume () const =0 |
Get the listener's overall volume (gain). More... | |
virtual Bool | SetMaxDistance (Real maxDistance)=0 |
Set the maximum hearing distance. More... | |
virtual Real | GetMaxDistance () const =0 |
Get the maximum hearing distance. More... | |
virtual Bool | SetDistanceModel (IEnums::DistanceModel distanceModel)=0 |
Set the listener's distance model used for attenuation calculation. More... | |
virtual IEnums::DistanceModel | GetDistanceModel () const =0 |
Get the listener's distance model used for attenuation calculation. More... | |
virtual Bool | SetWorldTransform (const Matrix &transform)=0 |
Set the listener's current world transform. More... | |
virtual const Matrix & | GetWorldTransform () const =0 |
Get the listener's current world transform. More... | |
virtual const Matrix & | GetViewTransform () const =0 |
Get the listener's current view matrix. More... | |
virtual Bool | IsIntersecting (const Sphere &boundingSphere) const =0 |
Check if the listener's hearing area intersects a given sphere. More... | |
virtual Bool | SetView (IView *view)=0 |
Set the listener view. More... | |
virtual IView * | GetView () const =0 |
Get the listener view. More... | |
Detailed Description
The IListener audio object interface.
This interface represents an audio listener or audio sink, which can be positioned and oriented in 3D world space.
Used internally by Graph::Listener.
Member Function Documentation
◆ GetObjectInterface() [1/2]
|
pure virtual |
Get the mutable Audio::IObject interface.
- Returns
- The IObject interface.
◆ GetObjectInterface() [2/2]
|
pure virtual |
Get the constant Audio::IObject interface.
- Returns
- The IObject interface.
◆ Enable()
|
pure virtual |
Enable the listener.
- Returns
- true if successful.
◆ Disable()
|
pure virtual |
Disable the listener.
- Returns
- true if successful.
◆ SetVolume()
Set the listener's overall volume (gain).
- Parameters
-
volume The overall volume, usually in the range 0.0-1.0.
- Returns
- true if successful.
◆ GetVolume()
|
pure virtual |
Get the listener's overall volume (gain).
- Returns
- The overall volume.
◆ SetMaxDistance()
Set the maximum hearing distance.
- Parameters
-
maxDistance The maximum distance.
- Returns
- true if successful.
◆ GetMaxDistance()
|
pure virtual |
Get the maximum hearing distance.
- Returns
- The maximum distance.
◆ SetDistanceModel()
|
pure virtual |
Set the listener's distance model used for attenuation calculation.
See Graph::Listener.
- Parameters
-
distanceModel The distance model to use.
- Returns
- true if successful.
◆ GetDistanceModel()
|
pure virtual |
Get the listener's distance model used for attenuation calculation.
- Returns
- The distance model used.
◆ SetWorldTransform()
Set the listener's current world transform.
- Parameters
-
transform The world transform matrix.
- Returns
- true if successful.
◆ GetWorldTransform()
|
pure virtual |
Get the listener's current world transform.
- Returns
- The world transform matrix.
◆ GetViewTransform()
|
pure virtual |
Get the listener's current view matrix.
The view matrix equals the inverse of the transform matrix.
- Returns
- The view matrix.
◆ IsIntersecting()
|
pure virtual |
Check if the listener's hearing area intersects a given sphere.
- Parameters
-
boundingSphere The world-coordinate bounding sphere to check.
- Returns
- true if the bounding sphere is in hearing range.
◆ SetView()
Set the listener view.
- Parameters
-
view The view to use.
- Returns
- true if successful.
◆ GetView()
|
pure virtual |
Get the listener view.
- Returns
- The view used.
The documentation for this interface was generated from the following file:
- murl_audio_i_listener.h