Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
sound::SoundManagerSingleton Class Reference

Class for the openal device and context. More...

#include <sound_singleton.h>

+ Collaboration diagram for sound::SoundManagerSingleton:

Classes

struct  AlcContextDeleter
 
struct  AlcDeviceDeleter
 

Public Types

using unique_ptr_alcdevice = std::unique_ptr<ALCdevice, AlcDeviceDeleter>
 
using unique_ptr_alccontext = std::unique_ptr<ALCcontext, AlcContextDeleter>
 

Public Member Functions

bool init ()
 
 ~SoundManagerSingleton ()
 

Public Attributes

unique_ptr_alcdevice m_device
 
unique_ptr_alccontext m_context
 

Detailed Description

Class for the openal device and context.

Member Typedef Documentation

◆ unique_ptr_alccontext

◆ unique_ptr_alcdevice

Constructor & Destructor Documentation

◆ ~SoundManagerSingleton()

sound::SoundManagerSingleton::~SoundManagerSingleton ( )

References infostream.

Member Function Documentation

◆ init()

bool sound::SoundManagerSingleton::init ( )

Member Data Documentation

◆ m_context

unique_ptr_alccontext sound::SoundManagerSingleton::m_context

Referenced by init().

◆ m_device

unique_ptr_alcdevice sound::SoundManagerSingleton::m_device

Referenced by init().


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