|
CeresEngine 0.2.0
A game development framework
|
A audio source is an entity that emits sounds. More...
#include <CeresEngine/Audio/API/Source.hpp>
Public Member Functions | |
| AudioAPISource ()=default | |
| The default constructor. | |
| AudioAPISource (const AudioAPISource &)=delete | |
| Deleted copy constructor. | |
| AudioAPISource & | operator= (const AudioAPISource &)=delete |
| Deleted copy assignment operator. | |
| virtual | ~AudioAPISource ()=default |
| Destroys the audio source. | |
| virtual void | play ()=0 |
| Plays a audio buffer. | |
| virtual bool | isPlaying () const =0 |
| virtual void | stop ()=0 |
| Stops playing sound from the source. | |
| virtual bool | isStopped () const =0 |
| Checks if the audio source is already stopped. | |
| virtual void | pause ()=0 |
| Pauses the audio source. | |
| virtual bool | isPaused () const =0 |
| Checks if the audio source reproduction is paused. | |
| virtual void | resume ()=0 |
| Resumes playing audio tracks. | |
| virtual void | update (const AudioAPISourceDescriptor &descriptor)=0 |
Public Member Functions inherited from CeresEngine::RefCounted< AudioAPISource > | |
| RefCounted (Args &&... args) | |
Creates a new RefCounted object and constructs a new Deleter by forwarding Args to it. | |
| void | retain () noexcept |
| Retains the object by increment it's reference count by one. | |
| bool | release () noexcept |
| Relases the object by decrementing it's reference count by one. | |
A audio source is an entity that emits sounds.
A source can have several attributes set for it, including position, direction, velocity, gain, etc.
A source can only play a single audio resource at once. If a object must emmit two or more sounds at once, more sources must be created and attached to the object.
|
default |
The default constructor.
|
delete |
Deleted copy constructor.
|
virtualdefault |
Destroys the audio source.
Checks if the audio source reproduction is paused.
Implemented in CeresEngine::ALSource.
Implemented in CeresEngine::ALSource.
Checks if the audio source is already stopped.
Implemented in CeresEngine::ALSource.
|
delete |
Deleted copy assignment operator.
Pauses the audio source.
Playback can be resumed from the same point with a call to resume().
Implemented in CeresEngine::ALSource.
Plays a audio buffer.
Implemented in CeresEngine::ALSource.
Resumes playing audio tracks.
Implemented in CeresEngine::ALSource.
Stops playing sound from the source.
If there is no sound being played, this method does nothing.
Implemented in CeresEngine::ALSource.
|
pure virtual |
Implemented in CeresEngine::ALSource.