Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
sound::RAIIALSoundBuffer Struct Referencefinal

RAII wrapper for openal sound buffers. More...

#include <al_helpers.h>

Public Member Functions

 RAIIALSoundBuffer () noexcept=default
 
 RAIIALSoundBuffer (ALuint buffer) noexcept
 
 ~RAIIALSoundBuffer () noexcept
 
 RAIIALSoundBuffer (RAIIALSoundBuffer &&other) noexcept
 
RAIIALSoundBufferoperator= (RAIIALSoundBuffer &&other) noexcept
 
ALuint get () noexcept
 
ALuint release () noexcept
 
void reset (ALuint buf) noexcept
 

Static Public Member Functions

static RAIIALSoundBuffer generate () noexcept
 

Private Attributes

ALuint m_buffer = 0
 

Detailed Description

RAII wrapper for openal sound buffers.

Constructor & Destructor Documentation

◆ RAIIALSoundBuffer() [1/3]

sound::RAIIALSoundBuffer::RAIIALSoundBuffer ( )
defaultnoexcept

Referenced by generate().

+ Here is the caller graph for this function:

◆ RAIIALSoundBuffer() [2/3]

sound::RAIIALSoundBuffer::RAIIALSoundBuffer ( ALuint buffer)
inlineexplicitnoexcept

◆ ~RAIIALSoundBuffer()

sound::RAIIALSoundBuffer::~RAIIALSoundBuffer ( )
inlinenoexcept

References reset().

+ Here is the call graph for this function:

◆ RAIIALSoundBuffer() [3/3]

sound::RAIIALSoundBuffer::RAIIALSoundBuffer ( RAIIALSoundBuffer && other)
inlinenoexcept

Member Function Documentation

◆ generate()

RAIIALSoundBuffer sound::RAIIALSoundBuffer::generate ( )
staticnoexcept

References RAIIALSoundBuffer().

Referenced by sound::RAIIOggFile::loadBuffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get()

ALuint sound::RAIIALSoundBuffer::get ( )
inlinenoexcept

References m_buffer.

Referenced by sound::SoundDataOpenBuffer::SoundDataOpenBuffer(), sound::SoundDataOpenBuffer::getOrLoadBufferAt(), and sound::RAIIOggFile::loadBuffer().

+ Here is the caller graph for this function:

◆ operator=()

RAIIALSoundBuffer & sound::RAIIALSoundBuffer::operator= ( RAIIALSoundBuffer && other)
noexcept

◆ release()

ALuint sound::RAIIALSoundBuffer::release ( )
inlinenoexcept

References m_buffer.

◆ reset()

void sound::RAIIALSoundBuffer::reset ( ALuint buf)
noexcept

References sound::warn_if_al_error().

Referenced by ~RAIIALSoundBuffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_buffer

ALuint sound::RAIIALSoundBuffer::m_buffer = 0
private

Referenced by get(), and release().


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