This is an interface to the sound system. More...
#include "SoundSys.hpp"
Public Member Functions | |
virtual bool | Initialize ()=0 |
Initializes the sound system. More... | |
virtual void | Release ()=0 |
Releases the sound system and removes all sound data from memory. More... | |
virtual bool | IsSupported ()=0 |
Determine if the sound system is supported on this platform. More... | |
virtual int | GetPreferenceNr ()=0 |
Returns the preference number for this sound system, so calling code can decide which sound system to use. More... | |
virtual SoundI * | CreateSound2D (const SoundShaderT *SoundShader)=0 |
Creates a 2 dimensional sound object using the properties of the passed sound shader. More... | |
virtual SoundI * | CreateSound3D (const SoundShaderT *SoundShader)=0 |
Creates a 3 dimensional sound object using the properties of the passed sound shader. More... | |
virtual void | DeleteSound (SoundI *Sound)=0 |
Deletes a previously created sound object. More... | |
virtual bool | PlaySound (const SoundI *Sound)=0 |
Plays a sound on a channel. More... | |
virtual void | SetMasterVolume (float Volume)=0 |
Sets the master volume for this sound system. More... | |
virtual float | GetMasterVolume ()=0 |
Gets the master volume currently set for this sound system. More... | |
virtual void | UpdateListener (const Vector3dT &Position, const Vector3dT &Velocity, const Vector3fT &OrientationForward, const Vector3fT &OrientationUp)=0 |
Updates the position, velocity and orientation of the listener. More... | |
virtual void | Update ()=0 |
Upates all channels that are currently being played according to the properties of their sound object. More... | |
virtual | ~SoundSysI () |
The virtual destructor makes sure that deleting derived classes via a SoundSysI pointer works properly. More... | |
This is an interface to the sound system.
The interface is specified as ABC in order to be able to share the sound system across exe/dll boundaries.
|
inlinevirtual |
The virtual destructor makes sure that deleting derived classes via a SoundSysI pointer works properly.
|
pure virtual |
Creates a 2 dimensional sound object using the properties of the passed sound shader.
SoundShader | Sound shader to use with this sound object. |
Implemented in SoundSysImplT.
|
pure virtual |
Creates a 3 dimensional sound object using the properties of the passed sound shader.
SoundShader | Sound shader to use with this sound object. |
Implemented in SoundSysImplT.
|
pure virtual |
Deletes a previously created sound object.
Sound | The sound object to delete. |
Implemented in SoundSysImplT.
|
pure virtual |
Gets the master volume currently set for this sound system.
Implemented in SoundSysImplT.
|
pure virtual |
Returns the preference number for this sound system, so calling code can decide which sound system to use.
Implemented in SoundSysImplT.
|
pure virtual |
Initializes the sound system.
Implemented in SoundSysImplT.
|
pure virtual |
Determine if the sound system is supported on this platform.
Implemented in SoundSysImplT.
|
pure virtual |
Plays a sound on a channel.
Sound | The sound object that should be played. |
Implemented in SoundSysImplT.
|
pure virtual |
Releases the sound system and removes all sound data from memory.
Implemented in SoundSysImplT.
|
pure virtual |
Sets the master volume for this sound system.
Volume | The new master volume. Value has to be 0, 1. |
Implemented in SoundSysImplT.
|
pure virtual |
Upates all channels that are currently being played according to the properties of their sound object.
Implemented in SoundSysImplT.
|
pure virtual |
Updates the position, velocity and orientation of the listener.
Position | Position of the listener in the 3D Space. |
Velocity | Velocity of the listener. |
OrientationForward | Forward orientation of the listener (unit length vector). |
OrientationUp | Upwards orientation of the listener (unit length vector). |
Implemented in SoundSysImplT.