Manages OpenAL audio operations, including device/context setup and sound playback. Implements a singleton pattern to ensure a single instance.
Подробнее...
#include <AudioModule.h>
|
void | startUp () |
| Initializes the OpenAL audio system by opening a device and creating a context.
|
|
void | shutDown () |
| Shuts down the OpenAL audio system by destroying the context and closing the device.
|
|
void | playSoundAsync () |
| Plays a generated sound asynchronously on a separate thread.
|
|
Manages OpenAL audio operations, including device/context setup and sound playback. Implements a singleton pattern to ensure a single instance.
◆ getInstance()
Retrieves the singleton instance of the AudioModule.
- Возвращает
- Reference to the singleton AudioModule instance.
◆ startUp()
void AudioModule::startUp |
( |
| ) |
|
|
inline |
Initializes the OpenAL audio system by opening a device and creating a context.
- Исключения
-
std::runtime_error | Thrown if the audio device or context cannot be initialized. |
Объявления и описания членов класса находятся в файле: