3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Audio::IAudioEngine Class Referenceabstract

Instances and handles audio device handles. More...

#include <IAudioEngine.hpp>

Inheritance diagram for Engine3DRadSpace.Audio::IAudioEngine:
Collaboration diagram for Engine3DRadSpace.Audio::IAudioEngine:

Public Member Functions

virtual void SwitchAudioDevice (const std::string &deviceName)=0
 Switches the audio device to the specified device name. If the device name is invalid, it will throw an exception.
virtual void Update () noexcept=0
 Syncronises the listener with the audio engine.
virtual std::optional< AudioError > CheckErrors ()=0
 Returns the last audio engine error.
 ~IAudioEngine () override=default
Public Member Functions inherited from Engine3DRadSpace.IService
IGame * GetOwner () const noexcept
 Gets the owner of this instance.
virtual ~IService ()=default

Public Attributes

class Listener Listener
 Specifies the listener for this audio engine.

Additional Inherited Members

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
Protected Attributes inherited from Engine3DRadSpace.IService
IGame * _owner = nullptr
Properties inherited from Engine3DRadSpace.IService
IGame Owner [get]

Detailed Description

Instances and handles audio device handles.

Constructor & Destructor Documentation

◆ ~IAudioEngine()

Engine3DRadSpace.Audio::IAudioEngine::~IAudioEngine ( )
overridedefault

Member Function Documentation

◆ CheckErrors()

virtual std::optional< AudioError > Engine3DRadSpace.Audio::IAudioEngine::CheckErrors ( )
pure virtual

Returns the last audio engine error.

Returns
AudioError enum value or std::nullopt otherwise

Implemented in Engine3DRadSpace.Audio.AudioEngine, and Engine3DRadSpace.Audio.AudioEngine.

◆ SwitchAudioDevice()

virtual void Engine3DRadSpace.Audio::IAudioEngine::SwitchAudioDevice ( const std::string & deviceName)
pure virtual

Switches the audio device to the specified device name. If the device name is invalid, it will throw an exception.

Parameters
deviceName

Implemented in Engine3DRadSpace.Audio.AudioEngine.

◆ Update()

virtual void Engine3DRadSpace.Audio::IAudioEngine::Update ( )
pure virtualnoexcept

Syncronises the listener with the audio engine.

Implemented in Engine3DRadSpace.Audio.AudioEngine, and Engine3DRadSpace.Audio.AudioEngine.

Member Data Documentation

◆ Listener

class Listener Engine3DRadSpace.Audio::IAudioEngine::Listener

Specifies the listener for this audio engine.


The documentation for this class was generated from the following file: