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 | |
RAIIALSoundBuffer & | operator= (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 |
RAII wrapper for openal sound buffers.
|
defaultnoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
staticnoexcept |
References RAIIALSoundBuffer().
Referenced by sound::RAIIOggFile::loadBuffer().
|
inlinenoexcept |
References m_buffer.
Referenced by sound::SoundDataOpenBuffer::SoundDataOpenBuffer(), sound::SoundDataOpenBuffer::getOrLoadBufferAt(), and sound::RAIIOggFile::loadBuffer().
|
noexcept |
|
inlinenoexcept |
References m_buffer.
|
noexcept |
References sound::warn_if_al_error().
Referenced by ~RAIIALSoundBuffer().