|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
OpenAL based audio engine. More...
#include <AudioEngine.hpp>


Public Member Functions | |
| AudioEngine () | |
| AudioEngine (string deviceName) | |
| void | SwitchAudioDevice (string deviceName) |
| void | Update () |
| Syncronises the listener with the audio engine. | |
| AudioError | CheckErrors () |
| Returns the last audio engine error. | |
| void | Dispose () |
| AudioEngine () | |
| Creates an AudioEngine with the default audio device. | |
| AudioEngine (const std::string &deviceName) | |
| Creates an AudioEngine with given device name. | |
| AudioEngine (const AudioEngine &)=delete | |
| AudioEngine (AudioEngine &&)=delete | |
| AudioEngine & | operator= (const AudioEngine &)=delete |
| AudioEngine & | operator= (AudioEngine &&)=delete |
| void | SwitchAudioDevice (const std::string &deviceName) override |
| Recreates this AudioEngine with the given audio device name. | |
| void | Update () noexcept override |
| Updates the listener. | |
| std::optional< AudioError > | CheckErrors () override |
| Returns the last error. | |
| ~AudioEngine () override | |
| Public Member Functions inherited from Engine3DRadSpace.Audio::IAudioEngine | |
| ~IAudioEngine () override=default | |
| Public Member Functions inherited from Engine3DRadSpace.IService | |
| IGame * | GetOwner () const noexcept |
| Gets the owner of this instance. | |
| virtual | ~IService ()=default |
Static Public Member Functions | |
| static unsafe? List< string > | ListAudioDevices () |
| static std::vector< std::string > | ListAudioDevices () |
| Returns an list of all available audio devices on the machine. | |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
| Protected Member Functions inherited from Engine3DRadSpace.IService | |
| IService () | |
| IService (IGame *owner) | |
| IService (const IService &)=delete | |
| IService & | operator= (const IService &)=delete |
| IService (IService &&) noexcept=default | |
| IService & | operator= (IService &&) noexcept=default |
Properties | |
| nint | Handle [get] |
| Listener | Listener [get, set] |
| Properties inherited from Engine3DRadSpace.IService | |
| IGame | Owner [get] |
Additional Inherited Members | |
| Public Attributes inherited from Engine3DRadSpace.Audio::IAudioEngine | |
| class Listener | Listener |
| Specifies the listener for this audio engine. | |
| Protected Attributes inherited from Engine3DRadSpace.IService | |
| IGame * | _owner = nullptr |
OpenAL based audio engine.
|
inline |
|
inline |
Creates an AudioEngine with the default audio device.
Copy and move destructors are removed, as this class is expected to have only one instance per Game instance.
|
explicit |
Creates an AudioEngine with given device name.
| deviceName | Audio device name. |
|
delete |
|
delete |
|
override |
|
inlinevirtual |
Returns the last audio engine error.
Implements Engine3DRadSpace.Audio::IAudioEngine.
|
overridevirtual |
Returns the last error.
Implements Engine3DRadSpace.Audio::IAudioEngine.
|
inline |
|
inlineprotectedvirtual |
|
inlinestatic |
|
static |
Returns an list of all available audio devices on the machine.
|
delete |
|
delete |
|
inline |
|
overridevirtual |
Recreates this AudioEngine with the given audio device name.
Implements Engine3DRadSpace.Audio::IAudioEngine.
|
inlinevirtualnoexcept |
Syncronises the listener with the audio engine.
Implements Engine3DRadSpace.Audio::IAudioEngine.
|
overridevirtualnoexcept |
Updates the listener.
Implements Engine3DRadSpace.Audio::IAudioEngine.
|
get |
|
getset |