Luanti 5.16.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 RAIIALSoundBuffer(), RAIIALSoundBuffer(), generate(), and operator=().

Here is the caller graph for this function:

◆ RAIIALSoundBuffer() [2/3]

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

References RAIIALSoundBuffer(), and m_buffer.

Here is the call graph for this function:

◆ ~RAIIALSoundBuffer()

sound::RAIIALSoundBuffer::~RAIIALSoundBuffer ( )
inlinenoexcept

References reset().

Here is the call graph for this function:

◆ RAIIALSoundBuffer() [3/3]

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

References RAIIALSoundBuffer(), m_buffer, and release().

Here is the call graph for this function:

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::RAIIOggFile::loadBuffer().

Here is the caller graph for this function:

◆ operator=()

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

References RAIIALSoundBuffer(), and reset().

Here is the call graph for this function:

◆ release()

ALuint sound::RAIIALSoundBuffer::release ( )
inlinenoexcept

References m_buffer.

Referenced by RAIIALSoundBuffer().

Here is the caller graph for this function:

◆ reset()

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

References m_buffer, and sound::warn_if_al_error().

Referenced by ~RAIIALSoundBuffer(), and operator=().

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

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