This class represents a sound. More...
#include "Sound.hpp"
Public Member Functions | |
virtual bool | Play ()=0 |
Plays the sound using the current sound system. More... | |
virtual void | Stop ()=0 |
Stops the sound. More... | |
virtual void | Pause ()=0 |
Pauses the sound. More... | |
virtual bool | Resume ()=0 |
Resumes a previously paused sound. More... | |
virtual bool | IsPlaying () const =0 |
Checks if the sound is currently playing. More... | |
virtual bool | Is3D () const =0 |
Checks if the sound is for 3D playback. More... | |
virtual void | ResetProperties ()=0 |
Resets the sound properties to those of the shader it was created from. More... | |
virtual void | SetPosition (const Vector3dT &Position_)=0 |
Set the position from which the sound is emanating. More... | |
virtual void | SetVelocity (const Vector3dT &Velocity_)=0 |
Sets the velocity of the source that emits the sound. More... | |
virtual void | SetDirection (const Vector3dT &Direction_)=0 |
Sets the direction into which the sound source is moving. More... | |
virtual void | SetPriority (unsigned int Priority_)=0 |
Sets the priority of this sound. More... | |
virtual void | SetInnerVolume (float InnerVolume_)=0 |
Sets the volume. More... | |
virtual void | SetMinDistance (float MinDist_)=0 |
Sets the minimal distance. More... | |
virtual void | SetMaxDistance (float MaxDist_)=0 |
Sets the maximal distance. More... | |
virtual void | SetInnerConeAngle (float InnerConeAngle_)=0 |
Sets the angle of the inner sound cone. More... | |
virtual void | SetOuterConeAngle (float OuterConeAngle_)=0 |
Sets the angle of the outer sound cone. More... | |
virtual void | SetOuterVolume (float OuterVolume_)=0 |
Sets the volume inside the outer sound cone. More... | |
virtual unsigned int | GetPriority () const =0 |
Gets the priority of this sound. More... | |
virtual float | GetInnerVolume () const =0 |
Gets the volume. More... | |
virtual float | GetMinDistance () const =0 |
Gets the minimal distance. More... | |
virtual float | GetMaxDistance () const =0 |
Gets the maximal distance. More... | |
virtual float | GetInnerConeAngle () const =0 |
Gets the angle of the inner sound cone. More... | |
virtual float | GetOuterConeAngle () const =0 |
Sets the angle of the outer sound cone. More... | |
virtual float | GetOuterVolume () const =0 |
Gets the volume inside the outer sound cone. More... | |
virtual | ~SoundI () |
The virtual destructor makes sure that deleting derived classes via a SoundI pointer works properly. More... | |
This class represents a sound.
Sounds are created and destroyed via the appropriate methods in the sound system.
|
inlinevirtual |
The virtual destructor makes sure that deleting derived classes via a SoundI pointer works properly.
|
pure virtual |
Gets the angle of the inner sound cone.
Implemented in SoundImplT.
|
pure virtual |
Gets the volume.
Implemented in SoundImplT.
|
pure virtual |
Gets the maximal distance.
Implemented in SoundImplT.
|
pure virtual |
Gets the minimal distance.
Implemented in SoundImplT.
|
pure virtual |
Sets the angle of the outer sound cone.
Implemented in SoundImplT.
|
pure virtual |
Gets the volume inside the outer sound cone.
Implemented in SoundImplT.
|
pure virtual |
Gets the priority of this sound.
Implemented in SoundImplT.
|
pure virtual |
Checks if the sound is for 3D playback.
Implemented in SoundImplT.
|
pure virtual |
Checks if the sound is currently playing.
Implemented in SoundImplT.
|
pure virtual |
Pauses the sound.
Implemented in SoundImplT.
|
pure virtual |
Plays the sound using the current sound system.
Implemented in SoundImplT.
|
pure virtual |
Resets the sound properties to those of the shader it was created from.
Implemented in SoundImplT.
|
pure virtual |
Resumes a previously paused sound.
Implemented in SoundImplT.
|
pure virtual |
Sets the direction into which the sound source is moving.
Implemented in SoundImplT.
|
pure virtual |
Sets the angle of the inner sound cone.
Implemented in SoundImplT.
|
pure virtual |
Sets the volume.
Implemented in SoundImplT.
|
pure virtual |
Sets the maximal distance.
Implemented in SoundImplT.
|
pure virtual |
Sets the minimal distance.
Implemented in SoundImplT.
|
pure virtual |
Sets the angle of the outer sound cone.
Implemented in SoundImplT.
|
pure virtual |
Sets the volume inside the outer sound cone.
Implemented in SoundImplT.
|
pure virtual |
Set the position from which the sound is emanating.
Implemented in SoundImplT.
|
pure virtual |
Sets the priority of this sound.
Implemented in SoundImplT.
|
pure virtual |
Sets the velocity of the source that emits the sound.
Implemented in SoundImplT.
|
pure virtual |
Stops the sound.
Implemented in SoundImplT.