LampyEngine
 
Загрузка...
Поиск...
Не найдено
Класс AudioModule

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.
 

Открытые статические члены

static AudioModulegetInstance ()
 Retrieves the singleton instance of the AudioModule.
 

Подробное описание

Manages OpenAL audio operations, including device/context setup and sound playback. Implements a singleton pattern to ensure a single instance.

Методы

◆ getInstance()

static AudioModule & AudioModule::getInstance ( )
inlinestatic

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_errorThrown if the audio device or context cannot be initialized.

Объявления и описания членов класса находятся в файле: