#include <IAudio.h>
Public Methods | |
virtual bool | Init (const ListenerInit &init)=0 |
virtual void | Term ()=0 |
virtual bool | SetProperties (const ListenerProp &prop)=0 |
virtual void | GetProperties (ListenerProp &prop) const=0 |
virtual bool | SetPosition (const AUDIOVECTOR &vPos)=0 |
virtual void | GetPosition (AUDIOVECTOR &vPos) const=0 |
virtual bool | SetVelocity (const AUDIOVECTOR &vVel)=0 |
virtual void | GetVelocity (AUDIOVECTOR &vVel) const=0 |
virtual bool | SetOrientation (const AUDIOVECTOR &vFront, const AUDIOVECTOR &vTop)=0 |
virtual void | GetOrientation (AUDIOVECTOR &vFront, AUDIOVECTOR &vTop) const=0 |
virtual bool | SetDistanceFactor (float fDistanceFactor)=0 |
virtual void | GetDistanceFactor (float &fDistanceFactor) const=0 |
virtual bool | SetDopplerFactor (float fDopplerFactor)=0 |
virtual void | GetDopplerFactor (float &fDopplerFactor) const=0 |
virtual bool | SetRolloffFactor (float fRolloffFactor)=0 |
virtual void | GetRolloffFactor (float &fRolloffFactor) const=0 |
virtual bool | QuerySupport (const GUID &guid, uint32 nID, uint32 *pTypeSupport)=0 |
virtual bool | Get (const GUID &guidProperty, uint32 nID, void *pInstanceData, uint32 nInstanceLength, void *pPropData, uint32 nPropLength, uint32 *pBytesReturned)=0 |
virtual bool | Set (const GUID &guidProperty, uint32 nID, void *pInstanceData, uint32 nInstanceLength, void *pPropData, uint32 nPropLength, bool bStoreProperty)=0 |
virtual IEAXListener* | EAX ()=0 |
This class places a virtual "microphone" at a designated position and orientation, and controls how 3D sounds are heard. Properties can also be set and retrieved on the listener object. One example of this is environmental reverberation, such as EAX.
|
This function allows an application to get property set information from a driver. See the DirectX Audio documentation and the documentation for the property set you wish to work with for details on how to use these parameters.
|
|
Gets the listener's distance factor.
|
|
Gets the listener's doppler factor. See SetDopplerFactor() for addition parameter information.
|
|
Gets the current listener orientation.
|
|
Gets the current listener position.
|
|
Gets all 3D listener properties in a single function call.
|
|
Gets the listener's rolloff factor. See SetRolloffFactor() for addition parameter information.
|
|
Gets the current listener velocity.
|
|
Initializes the listener object with required initialization data.
|
|
Generic property support (for driver-specific extensions). Querying an object allows a program to determine if driver-specific extensions are available on a user's system. By exposing this at the API level, it ensures that the application has complete control over any property sets needed at the application level. See the DirectX Audio documentation and the documentation for the property set you wish to work with for details on how to use these parameters.
|
|
This function allows an application to set a driver-specific property. See the DirectX Audio documentation and the documentation for the property set you wish to work with for details on how to use these parameters.
|
|
Sets the listener's distance factor.
|
|
Sets the listener's doppler factor, which is the rate at which pitch will shift when a sound is moving rapidly toward or away from the listener. 1.0, or DS3D_DEFAULTDOPPLERFACTOR is the default. The range is from 0.0 to 10.0, or DS3D_MINDOPPLERFACTOR to DS3D_MAXDOPPLERFACTOR.
|
|
Sets the current listener orientation.
|
|
Sets the current listener position.
|
|
Sets all 3D listener properties in a single function call.
|
|
The rolloff factor adjusts the amount a sound will attenuate over distance. 1.0, or DS3D_DEFAULTROLLOFFFACTOR is the default. The range is from 0.0 to 10.0, or DS3D_MINROLLOFFFACTOR to DS3D_MAXROLLOFFFACTOR.
|
|
Sets the current listener velocity.
|
|
Shuts down the listener object. An application normally does not have to call this function since the audio manager will automatically terminate the listener when it exits.
|